Replies: 2 comments
-
for now i can work with wrapper and set there onClick for deselection and stopPropagation on the onClick Event of the map. But this is not very nice to be honest |
Beta Was this translation helpful? Give feedback.
0 replies
-
Currently, I do this disabling |
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
-
Hi all,
i recently upgraded from v6 to v7 and i recognized that the onClick event changed.
In v6 i checked
onClick
if a feature of my layer (i'm using interactiveLayerIds) was clicked or not and select/deselect the feature.Like in google maps if you click somewhere on the map the selected feature gets deselected.
Now i'm facing the problem that i can not deselect the feature because the onClick event is only fired if click on a canvas of my layer.
Unfortunately i didn't find a callback function that recognizes or catches when i don't click on a feature of my layer.
Have you any hint for me how to implement that functionality with react-maps-gl v7
Beta Was this translation helpful? Give feedback.
All reactions