deckgl icon indicating copy to clipboard operation
deckgl copied to clipboard

OnClick not working

Open nkennyxfab opened this issue 3 years ago • 1 comments

Hi @crazycapivara, this package is super awesome but when I try to use onClick, it doesn't work. onHover however works fine.

nkennyxfab avatar Jul 08 '22 09:07 nkennyxfab

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.

crazycapivara avatar Jul 09 '22 10:07 crazycapivara