Enable wrapX by default
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user