-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Hide Layer on Zoom threshold #2192
Comments
The way I handle it for IconLayer's is a dynamic The intended way however is |
Hi @SinZ163 , Thanks for your response. |
Try figuring out how to access the viewport in the base map component, and passing it as props down to deckgl for logic in the visible prop for the layer. It should be something like |
@nikit91, you can listen to |
Hello,
I am quite new at deck.gl and I have been trying to implement something using DeckGL standalone.
I have implemented a hexagon layer on my data. However, I realized that my data is spread across many countries on the map and I would like to have an extra icon layer to point the user where exactly could they zoom in to find the hexagonal bars.
I implemented the icon layer, but then after zooming in the map looks something like this:
As you can probably notice, the icon stays in the background.
What I would like to know is if somehow I could change the visibility of a layer based on the value of zoom.
The text was updated successfully, but these errors were encountered: