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

Is there any way to rotate an image ? #7606

Closed
drgarlic opened this issue Nov 21, 2018 · 1 comment
Closed

Is there any way to rotate an image ? #7606

drgarlic opened this issue Nov 21, 2018 · 1 comment

Comments

@drgarlic
Copy link

drgarlic commented Nov 21, 2018

Hi,

I was playing with your wonderful library after using Leaflet for a few months to see if I could make the switch, but there one vital feature to me that seems to be missing.

Can I add an image to a map and then rotate it on the fly ? If not, what would be the best way to add this feature ?

I spent the whole day yesterday to see how it could be achieved but I kept hitting walls over and over again. I tried to add images via layers, symbols and markers. Layers can't be rotated and symbols/markers don't have fixed positions. Here's the library that I'm currently using in Leaflet, which comes with an example. I thought about doing an .extends() like in Leaflet but it doesn't seem to be possible with Mapbox. If it is, I'm trully sorry for the inconvenience.

Thank you for your answer and your great work ! 👍

Kevin

@ryanhamley
Copy link
Contributor

There's not really a way to do this right now but there's a ticket for adding animation for images (#7588) if you'd like to read some proposals for this. There's no specific timeline on this feature at the moment though.

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

No branches or pull requests

2 participants