deckgl
deckgl copied to clipboard
OnClick not working
Hi @crazycapivara, this package is super awesome but when I try to use onClick, it doesn't work. onHover however works fine.
Hi @nkennyxfab,
the onClick event is a little tricky, because I only wrapped it for usage in Shiny at the moment. But if you have installed the latest version via remotes::install_github("crazycapivara/deckgl"), you can write a JS callback function as shown in the icon-layer-onclick-example.
Note: you have to hit the icon, not the middle part where it is transparent.