Zoom Event on MapView Does Not Trigger after MapView.setExtent Method

10-16-2014 11:43 PM
New Contributor II

Hi all,

I am listening to OnZoomListener event (mapView.setOnZoomListener).

But it seems that it doesn’t handle changing of zoom of the map after MapView.SetExtent(….).

Can someone help me how to handle it?

Thanks in advance!

Tags (2)
0 Kudos
2 Replies
Occasional Contributor III

Hi Eduard,

This behavior is as designed. OnZoomListener only gets invoked for zoom in/out and pinch. We currently do not have a map extent changed event exposed in the Android API. This is coming with 10.3.

I hope this helps!

New Contributor II

Ok, we're using workaround here, just call MapView.zoomin() and MapView.zoomout() at once. It triggers zoom event and seems not to affect performance at least on Nexus 10, and some Samsung tablets. As soon as new version of SDK gets available we get rid of this clumsy method.

0 Kudos