Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnClick not working #204

Open
nkennyxfab opened this issue Jul 8, 2022 · 1 comment
Open

OnClick not working #204

nkennyxfab opened this issue Jul 8, 2022 · 1 comment

Comments

@nkennyxfab
Copy link

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

@crazycapivara
Copy link
Owner

crazycapivara commented Jul 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants