Merge pull request #7111 from ahocevar/graticule-nowrap

Remove broken wrapX handling from ol.Graticule
This commit is contained in:
Andreas Hocevar
2017-08-12 15:36:30 -06:00
committed by GitHub
2 changed files with 4 additions and 18 deletions

View File

@@ -10,12 +10,15 @@ goog.require('ol.style.Stroke');
var map = new ol.Map({
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
source: new ol.source.OSM({
wrapX: false
})
})
],
target: 'map',
view: new ol.View({
center: ol.proj.fromLonLat([4.8, 47.75]),
extent: ol.proj.get('EPSG:3857').getExtent(),
zoom: 5
})
});