OpenLayers 3: wrapX attribute is ignored, map wraps although it shouldn't

المشرف العام

Administrator
طاقم الإدارة
I recently started working with OpenLayers and managed to load my custom map tiles, however, I seem unable to keep the map from wrapping horizontally. I set the wrapX in the ol.view to false - but the attribute is ignored.

I am using a ol.source.XYZ - is the wrapX not supported for this source?

var view = new ol.View({ center: [-6217890.205764902, -1910870.6048274133], zoom: 2, maxZoom: 6, minZoom: 2, wrapX: false, extent: extent,});

أكثر...
 
أعلى