Enable wrapX by default

This commit is contained in:
Andreas Hocevar
2015-09-30 14:23:18 +02:00
parent 8e9b20db51
commit af69933c64
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -65,9 +65,9 @@ var map = new ol.Map({
], ],
target: 'map', target: 'map',
view: new ol.View({ view: new ol.View({
center: [1823849, 6143760], center: [0, 0],
minZoom: 1, minZoom: 1,
zoom: 3 zoom: 2
}) })
}); });
+1 -1
View File
@@ -42,7 +42,7 @@ ol.source.VectorTile = function(options) {
options.tileLoadFunction : ol.source.VectorTile.defaultTileLoadFunction, options.tileLoadFunction : ol.source.VectorTile.defaultTileLoadFunction,
tileUrlFunction: options.tileUrlFunction, tileUrlFunction: options.tileUrlFunction,
tilePixelRatio: options.tilePixelRatio, tilePixelRatio: options.tilePixelRatio,
wrapX: options.wrapX wrapX: options.wrapX === undefined ? true : options.wrapX
}); });
/** /**