there are many ways to detect this. i know you can place a map overlay
which runs an onTouchEvent to get the x and y scroll but it will only
give you the distance you moved in x and y values in about .1 seconds
and then it will rerun and give you another set of x and y distance
moves. You can get the the two geopoints, convert them to on screen
locations and subtract the two x and y values but you have to tell it
when you want it to record the geopoints. Or you can run an
onTouchEvent on the mapview but i have never had any luck getting it
to run (because the mapview is already running an onTouchEvent) so i
wouldnt bother trying.

if you are trying to get the distance moved then using the
onTouchEvent on a map overlay is probably your best option but you
have to find a way to add all the move distances together as well as
find a way to tell it to keep adding the distances together is lift
your finger off the screen but if your only trying to detect when a
scroll happens then just set an if statement to start what you want to
happen on the scroll when either x or y changes.

feel free to contact me if you dont get any of this.

On Jan 22, 12:25 am, Raymond Rodgers <[email protected]> wrote:
> Is there a way to detect when a map view has been scrolled? For
> instance, say the user was zoomed in on Alcatraz Island, and they
> scrolled/panned on over to San Francisco proper (say Pier 39), is there
> a way to detect when that happens? I would expect that there should be a
> listener that I could create for such an event, but I haven't noticed
> one yet.
>
> Thank you,
> Raymond
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to