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

Handling groups in FastMarkerCluster #1871

Open
berrfred opened this issue Feb 5, 2024 · 1 comment
Open

Handling groups in FastMarkerCluster #1871

berrfred opened this issue Feb 5, 2024 · 1 comment

Comments

@berrfred
Copy link
Contributor

berrfred commented Feb 5, 2024

Is your feature request related to a problem? Please describe.
I really appreciate the FastMarkerCluster that allows me to plot over 300K markers and keep both a reactive map and a not so big generated HTML size (10 times smaller than MarkerCluster, so in my case 30MB vs 300MB).
However, as far as I understand, we loose the ability to manage groups ... with MarkerCluster it was possible to define several FeatureGroupSubGroup objects so that I could show/hide a subset of my data (e.g. markers for 2G / 3G / 4G / 5G mobile cells coordinates).
Could this be done with FastMarkerCluster ???

Describe the solution you'd like
Have FastMarkerCluster handle groups that are controlled through the Layer Control.

Describe alternatives you've considered
None

Additional context
In the below map snapshot, I am using FastMarkerCluster to plot 2G (black) / 3G (gray) / 4G (blue) / 5G (red) cells. The cell color is handled in the callback though a network_type attribute that is provided in addition to latitude and longitude.
Instead of a single item "Cell coordinates", I'd like to have 4 items based on the cell technology.

image

Implementation
Not sure to have the requested knowledge yet ...

@berrfred
Copy link
Contributor Author

berrfred commented Feb 5, 2024

Hereafter what I used to get with MarkerCluster (and GroupedLayerControl):

image

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

1 participant