I have an OL3 map that constantly repeats its self. I have contained the WMS layers, though the vector layers like to repeat. What is really important is keeping the user from panning into nowhere, i.e. Keeping the user from scrolling past the poles and dateline. I added an extent to the view but it still adds some map past the date line and poles. Any idea how to prevent this?
view: new ol.View({
center: [0, 0],
zoom: 8,
minZoom:2,
maxZoom: 13,
extent: [-20037508.34, -20037508.34, 20037508.34, 20037508.34]
})
Is my current code
Edit: The solutions from previous questions are all OpenLayers 2. OpenLayers 3 is a completely different framework that shares virtually nothing outside of the name.