Closed jomayan closed 4 years ago
Yes, this would be possible, something like the below should work:
Mapper::map(53.381128999999990000, -1.470085000000040000, ['eventAfterLoad' => 'limitZoom(map);']);
function limitZoom(map) {
map.event.addListener(map, 'zoom_changed', function() {
minZoomLevel = 1
if (map.getZoom() < minZoomLevel) map.setZoom(minZoomLevel);
});
}
Thanks Brad. Will try this out.
hello there,
I'm having a different issue with zoom in and out key....
Sometimes the key does exists sometimes not, I don't even know why this is happing...
Can you help me to show the switch
Thanks
Is there a way to limit the maximum Zoom In?