Detect when pan animation is completed

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Detect when pan animation is completed

Postby appricot » Mon Jan 11, 2010 5:03 pm

Hey everyone,
I am wondering if there is a simple way to detect when the pan animation of a map finishes. in other words, i don't simply detect ACTION_UP, because the map can still be moving to a different center after the finger is released from the touch display (in case you fling it!).

Thanks, Ralf
Once Poster
Once Poster
Posts: 1
Joined: Tue Dec 08, 2009 5:50 pm


Postby piuccio » Mon Jan 11, 2010 11:36 pm

You can send an delayed message and check after a while if the map is still moving.
Maybe it's not the best solution but it works.
Posts: 3
Joined: Sun Sep 06, 2009 11:43 am

Postby qlimax » Tue Jan 12, 2010 12:45 am

an idea would be to start a thread on key up

then wait i.e 2 seconds,

then call this on your map controller ... boolean%29

and join the thread before doing any stuff with the center coordinates

¯`·.¸¸.><((((º>¯`·.¸¸. ><((((º>
User avatar
Master Developer
Master Developer
Posts: 271
Joined: Mon Aug 31, 2009 10:54 am
Location: Swiss


Return to Map Problems

Who is online

Users browsing this forum: No registered users and 2 guests