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

map#getLayerZoomRange #3886

Closed
Naimikan opened this issue Jan 4, 2017 · 3 comments
Closed

map#getLayerZoomRange #3886

Naimikan opened this issue Jan 4, 2017 · 3 comments

Comments

@Naimikan
Copy link
Contributor

Naimikan commented Jan 4, 2017

Hi!

I want to get the minzoom and maxzoom properties from layer. Only exists setLayerZoomRange.

Is there any way to get the minimum and maximum zoom from a layer?

Thanks!

@lucaswoj
Copy link
Contributor

lucaswoj commented Jan 4, 2017

Already done in #3592

@lucaswoj lucaswoj closed this as completed Jan 4, 2017
@lucaswoj
Copy link
Contributor

lucaswoj commented Jan 4, 2017

My mistake! That's for the map's zoom not the layer's. I suggest using Map#getLayer(id).minzoom (this won't break with #3713)

@Naimikan
Copy link
Contributor Author

Naimikan commented Jan 5, 2017

Thanks @lucaswoj and @mollymerp!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants