Add wrapX option for ol.source.WMTS

This commit is contained in:
Andreas Hocevar
2015-03-24 17:13:07 +01:00
parent ae2c9144e1
commit 57d9b87fb3
4 changed files with 24 additions and 22 deletions
+2 -2
View File
@@ -35,7 +35,6 @@ var map = new ol.Map({
}),
new ol.layer.Tile({
opacity: 0.7,
extent: projectionExtent,
source: new ol.source.WMTS({
attributions: [attribution],
url: 'http://services.arcgisonline.com/arcgis/rest/' +
@@ -49,7 +48,8 @@ var map = new ol.Map({
resolutions: resolutions,
matrixIds: matrixIds
}),
style: 'default'
style: 'default',
wrapX: true
})
})
],