-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Hold shift to draw rectangle and zoom into it on the map. #775
Comments
Hey @baxter1707, I wanted to enable this option in my project as well, but haven't found a way to do that yet. Clearly the option is there and the Mapbox GL documentation says that we can do that. If I call I ended up finding this issue and was wondering if you got the |
Also looking for a way to implement this. |
Also looking for a way to do this. As a reference, |
@Pessimistress would you be able to provide any insight on the best way to accomplish this? My first thought was to extend the edit: also, I disabled |
This can be done by extending the controller class. I do not have the bandwidth to get to this at the moment, any PR would be greatly appreciated. |
This is being addressed in v7.0. Please follow #1646 |
Hey! Great work on the library! I was wondering what it would take to be able to hold shift down and then draw a rectangle and then zoom to that point.
Mapbox GL had something like that built in and the following code can be found at the link below.
https://github.com/mapbox/mapbox-gl-js/blob/e9559550ca9b35eb0e8b509e110e8db7f961fd85/src/ui/handler/box_zoom.js
This is from there example, and what I am hoping to accomplish.
Thank you guys again for any feedback and the work you have done!
The text was updated successfully, but these errors were encountered: