Enable wrapX by default
This commit is contained in:
@@ -65,9 +65,9 @@ var map = new ol.Map({
|
||||
],
|
||||
target: 'map',
|
||||
view: new ol.View({
|
||||
center: [1823849, 6143760],
|
||||
center: [0, 0],
|
||||
minZoom: 1,
|
||||
zoom: 3
|
||||
zoom: 2
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ ol.source.VectorTile = function(options) {
|
||||
options.tileLoadFunction : ol.source.VectorTile.defaultTileLoadFunction,
|
||||
tileUrlFunction: options.tileUrlFunction,
|
||||
tilePixelRatio: options.tilePixelRatio,
|
||||
wrapX: options.wrapX
|
||||
wrapX: options.wrapX === undefined ? true : options.wrapX
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user