MVTLayer visible prop #9472
Unanswered
dhruv4kubra
asked this question in
Q&A
Replies: 1 comment
-
You can't create 2 deck layers with the same id. Just like you wouldn't in the DOM. If you are using React, just set visible as your toggle state value? visible: mvtVisible |
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.
-
Hi I need some help with MVTLayer visible prop. I have a MVTLayer that shows up and is controlled by a toggle.
Toggle changes state which is what i look for when creating all my layers and setting their visible flag accordingly. As i am noticing
visible
flag only works on first load of layer. if i create another layer with same id butvisible: false
(basically toggle it). IT doesnt change the state of MVTLayer.I am using deckGL with react 19. I need to ability to control show/hide of MVTLayer using a toggle. Can someone please help?
Beta Was this translation helpful? Give feedback.
All reactions