-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markers rotate with map #6
Conversation
Doing this is possible without adding modifications to MapView, but it involves adding Overall, you did a great job and it fits your use case. But I need more time to think about it. Everything that touches API requires careful design choices. |
For the moment, I'm thinking about adding an example in the demo, which would do exactly what you've done but using the ReferentialOwner I mentioned. |
I didn't know it is possible with Regarding the I was gentle about the API and I have added the angle to |
I've just pushed a change in the |
Great, the example code works like a charm. Thanks for the help. |
Hey, I needed to rotate markers with the angle of the map, so I added functionality for the marker to stick to specified angle. This works nicely with displaying current position in custom map, in this case the angle of the map is determined by bearing. See updated demo.
Rotation of the marker is done optionally in
addMarker
,moveMarker
(to optimize updating current position) and manually inrotateMarker
function.