How can I detect if an Android MapView has been panned or zoomed?

dl. picture dl. · Feb 24, 2010 · Viewed 9.6k times · Source

I'm creating an Android app that searches for items based on the visible area of the MapView. Is there a way to set up a listener on my MapView to detect when a map has been panned or zoomed?

Answer

liding picture liding · Mar 24, 2011

try mapview-overlay-manager, it is a extension for overlayer for android maps,

it has some simplified OnGestureListener, few example:

onSingleTap(MotionEvent, ManagedOverlay, GeoPoint, OverlayItem)

onDoubleTap(MotionEvent, ManagedOverlay, GeoPoint, OverlayItem)

onLongPress(MotionEvent, ManagedOverlay, GeoPoint, OverlayItem)

onZoom(ZoomEvent, ManagedOverlay)

onScrolled(...)

link:http://code.google.com/p/mapview-overlay-manager/ hope it helps