-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Zoom snapping #256
Comments
Hi @kateler thanks for raising the issue. That sounds like a great idea, although I'm a bit concerned about adding more buttons to the map UI (there's already another button on the way in another ticket). As this seems like a power user feature how about using the modifier key instead. Something like Thoughts? Any other ideas are welcome also, my main aim is to keep buttons on the map to a minimum. |
I like the idea of a shift+click on the zoom buttons to save on screen real estate. Anything to save me from having to click into the URL and manually edit the zoom level! I can't share what I'm working on right now... maybe in the future. |
So @kateler it turns out that mapbox-gl supports this by default. On the keyboard just press For further reference see https://github.com/mapbox/mapbox-gl-js/blob/65afc08ef02f5eb2081c2e3ee83f23e61722ac14/src/ui/handler/keyboard.js#L15-L23 |
That's perfect! Thanks for finding that out and sharing. |
No problem glad to help, closing issue. |
From @kateler in issue #252. Moved to a new ticket so we can track separately.
The text was updated successfully, but these errors were encountered: