You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, setting the interactiveLayers on <Map> is decoupled from rendering <Layer>s.
We have to find a way to keep those two lists in sync, which can be hard depending on how dynamic the list of layers is and how the app is structures.
Proposal
It would be great if the <Layer> component could track the interactive-flag itself.
The layer is the source of truth for the layer id which is what we need for the interactiveLayers prop on Map, so it is a natural state to also specify if this layer should be interactive or not.