Deactivating the map navigation doesn't really solve it. The user can zoom in several zoom levels in one go using gestures, and then the map will be zoomed in too far.So there is no way to hook into a navigation event before it happens and cancel it?
Hi, We are creating an application using the compact version and a cached background service, and in some cases we would like to cancel the "zoom in" event. If the user has turned on a certain layer, it should be possible to zoom in a few more levels than if this layer is not on.I have looked at dojo stopEvent and jQuery event.preventDefault, but in the map.onZoomStart event there is no event object available to cancel. We are limiting the zoom levels using the lod property when creating the map. But it doesn't seem to be a good way of changing the lods in "run time".Today we are checking the zoom level in the "onZoomEnd" event, and then setting a different level if the user is zoomed in too far. But thats not very elegant (extra traffic, and the map popping out looks strange).Any ideas?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.