Issue
I have managed to create an arrow ImageView
and get the azimuth from the sensors, after that I rotate the ImageView
using setRotation()
method of the View
class. How I can do this for a marker using Android Google Maps v2 Markers?
Solution
I suggest you take a look at the android-maps-utils project from Google.
It contains
- BubbleIconFactory : Responsible for generating markers
- RotationLayout : Responsible for rotating the contents of the layout (the marker) by multiples of 90 degrees
This should give you the building blocks you need to display your arrow/marker and give it a certain rotation. You'll probably need to customize the rotationlayout a bit.
Answered By - ddewaele
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.