Replies: 2 comments 1 reply
-
Did you manage to get interactiveLayerIds to work as intended? When I try access the features, the array is always empty... not sure why its not referencing the layer "id" features provided. |
Beta Was this translation helpful? Give feedback.
-
@RobJJ Looking at the code now it looks like you need to specify which ids you want to make interactive by passing ids to the comp through interactiveLayerIds.
https://visgl.github.io/react-map-gl/docs/api-reference/map#interactivelayerids Please take this with a grain of salt. I haven't worked on this project in almost a year and some things could have changed by now. Hope this helps :) |
Beta Was this translation helpful? Give feedback.
-
Just migrated from v6 where this return all layers that a user clicked on, this same code produces undefined now.
Tried this too, with no luck
interactiveLayerIds = {['*']}
Beta Was this translation helpful? Give feedback.
All reactions