Select to view content in your preferred language

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

2566
2
10-16-2014 11:43 PM
EduardLepner
Deactivated User

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
EricBader
Honored Contributor

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!

EduardLepner
Deactivated User

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