views:

292

answers:

3

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?

A: 

The only way that I can think of is to extends the MapView and override the OnTouchEvent and watch for the Up action. This will tell you that the user has finished moving and you can get the lat/lon span to determine the region you should check out.

CaseyB
A: 

do you have an example of this?

Pedro Teixeira
A: 

look at this this solves the problem at the origin!

http://pa.rezendi.com/2010/03/responding-to-zooms-and-pans-in.html

sgd