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

Idea: Option to auto-rotate the map so that direction of movement is up (like a car nav system) #1

Open
lehnerpat opened this issue Mar 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@lehnerpat
Copy link
Owner

No description provided.

@lehnerpat lehnerpat added the enhancement New feature or request label Mar 13, 2022
@lehnerpat
Copy link
Owner Author

Leaflet doesn't currently support rotating the map (see here).

As mentioned in that comment, I looked into other libraries, but none seem to have very good support for React.
I tried around with openlayers + rlayers a bit (see 8385069), but openlayers requires a lot more work and thought to do most things that Leaflet.

I'll probably try and see if it works well enough to just set Leaflet to a non-interactive mode and rotate it using CSS. If that's not good enough, I might also check out some community-built rotation plugins/libraries for Leaflet.

@lehnerpat lehnerpat self-assigned this Mar 13, 2022
@lehnerpat lehnerpat removed their assignment Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant