diff --git a/examples/mapbox-vector-tiles.js b/examples/mapbox-vector-tiles.js index 4506437370..97529fd143 100644 --- a/examples/mapbox-vector-tiles.js +++ b/examples/mapbox-vector-tiles.js @@ -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 }) }); diff --git a/src/ol/source/vectortilesource.js b/src/ol/source/vectortilesource.js index 4e8e2b4476..3fab70318c 100644 --- a/src/ol/source/vectortilesource.js +++ b/src/ol/source/vectortilesource.js @@ -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 }); /**