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?