Issue
I'm trying to control the animation of the android map, but I don't know how to do. Into my locationlistener I set animateTo() on the point of my location and it works great. What I want to do is animate the point of my location only the first time when you open the map. Right now the animation works, but I can't pan the map, because when you try to pan the map after a moment automatically pan back on my position and this is very annoying! How can I handle this? I'd like to see my position when I start the map the first time and when I resume the activity, but after this I'd like to pan the map and see what I want!
Thanks for the help
Solution
I'm not sure if this is appropriate for your usage, but you could utilise the existing MyLocationOverlay class for showing the current position. This class has a runOnFirstFix method, which you could use to move to the initial co-ordinates obtained when the GPS locks.
Answered By - Nick Blomberg
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.