Skip to content
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

feature request: adding {"rotation-alignment": "map"} option to mapboxgl.Marker() #3937

Closed
kkdd opened this issue Jan 10, 2017 · 5 comments · Fixed by #8836
Closed

feature request: adding {"rotation-alignment": "map"} option to mapboxgl.Marker() #3937

kkdd opened this issue Jan 10, 2017 · 5 comments · Fixed by #8836

Comments

@kkdd
Copy link

kkdd commented Jan 10, 2017

Hello.
For drawing arrowhead markers, I believe that mapboxgl.Marker() should have {"rotation-alignment": "map"} option. See the following examples:

https://gist.github.com/kkdd/928c67088c2debae4204bef55c170106

apboxgl marker

@emperor1412
Copy link

@mourner
This feature make sense.

@mourner
Copy link
Member

mourner commented May 30, 2017

Maybe worth implementing in the core. However this would be easy enough to do on the application side — subscribing to the move event and rotating the marker element with a CSS transform.

@emperor1412
Copy link

But if you don't have "icon-rotation-alignment": "map" then when rotate map's camera, the marker always face to camera like billboard, and rotate the marker then won't work correctly, no ?

@kirillegorov-dev
Copy link

kirillegorov-dev commented Oct 23, 2018

We still need the ability to set marker's direction.

@seedgabo
Copy link

any update of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants