How to show/hide layers of styleURL on the client #2961
Unanswered
CarlosAlbertoTI
asked this question in
Q&A
Replies: 1 comment
-
I think you should be able to do this with setSourceVisibility There is also an example here - https://github.com/rnmapbox/maps/blob/main/example/src/examples/Map/SourceLayerVisibility.js |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hey guys, I would like to know if there is a way to dynamically hide/show layers that I have implemented or set up on Mapbox Studio on the client side. Here's an example scenario:
I came across a similar post, but it is specifically related to react-map-gl. Here's the link:
https://stackoverflow.com/questions/74102313/how-to-show-hide-layers-in-mapbox-on-the-client
Beta Was this translation helpful? Give feedback.
All reactions