Ferm wrote:
> How do I know when zoom has changed?

Again, there is no good way to do this.

A lousy approach that should work indefinitely is to poll the MapView,
calling getZoomLevel(), and watch for changes. However, polling is
inefficient.

A lousy approach that will probably break between Android versions is to
use the deprecated getZoomControls() to obtain the ZoomControls that the
MapView uses and add listeners to those.

A great approach that will take a year or two is to file an issue asking
for better zoom/pan events, then wait for such events to appear in Android.

Off the top of my head, I cannot think of other alternatives.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to