What steps do I need to take to draw an arrow on top of my mapview so that it will rotate in a manner so that it is always pointing towards my destination?
Asked
Active
Viewed 1,114 times
0
-
What steps have you tried? What steps do you think you need to take? – Falmarri Jan 13 '11 at 23:30
-
I imagine some kind of custom overlay, but where can I look for rotating a graphic? – Jan 13 '11 at 23:42
1 Answers
0
I would suggest you to update images according to the positions of the destination Do follow this post for reference
'android drawing path as overlay on mapview' (for Custom Overlays)
& after that call invalidate() from an UI thread or postInvalidate() from a non-UI thread on the MapView object you are using , to add items to your maps overlay .
This way(by invalidating the view & then draw()ing it again) you may position the arrow images to be updated with your destination