Canceling a zoom event #1999
Unanswered
spencerjsmall
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wondering if anyone knows a way to cancel a zoom event. I am using the boxZoom bounding box as a feature selector in my project and would like to be able to trigger something like
e.originalEvent.preventDefault()so the map doesn't zoom upon feature selection.If there's no solution, I'll probably end up using mapbox-gl-draw to allow the user to draw a selection box, but I figured I'd try to override what's already built-in first.
Beta Was this translation helpful? Give feedback.
All reactions