-
Notifications
You must be signed in to change notification settings - Fork 51
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
How to get current zoom level of the map? #337
Comments
You can try using the "onZoom", in the object you'll see the zoom |
the method you're looking for is
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I need to do is to deactivate the highlight function until the users reach a certain higher zoom level. So is there a
getZoom()
function in this library and how to apply it? I'm confused since every answer on StackOverflow is about react-mapbox-gl but I don't have time to switch the whole codebase.The text was updated successfully, but these errors were encountered: