开发者

Overlaying an arrow to always point to my direction in Android MapView

开发者 https://www.devze.com 2023-02-04 10:41 出处:网络
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?I would suggest you to update

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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消