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

Crosstalk interacting with Leaflet with select boxes shows all data when no selection made #121

Open
mmfc opened this issue Mar 21, 2022 · 1 comment

Comments

@mmfc
Copy link

mmfc commented Mar 21, 2022

Hi,

I'm trying to generate a static rmd html file using leaflet and crosstalk.
I want a map that displays no data when two checkboxes in the sidebar are unchecked.
Currently, when all checkboxes are unchecked, all data is displayed on the map (rather than none).
When one of the checkboxes is checked, the correct subset of the shared dataframe is displayed.

Crosstalk 1.1.1, leaflet 2.0.4.1

Does anyone have any advice?

@paragemini
Copy link

I am also looking for this feature. Currently everything is displayed on the map but a functionality where everything is not displayed and when the user selects the checkboxes, one would only display data on map which corresponds to boxes checked
@dmurdoch can ypu please help us? Or atleast give guidance on how to achieve it?

Is there something that needs to be done here :
https://github.com/dmurdoch/leaflet/blob/crosstalk4/javascript/src/methods.js

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