Skip to content

Document how to toggle FastMarkerCluster categories in a shared cluster - #2389

Open
hasnain-afkar wants to merge 1 commit into
python-visualization:mainfrom
hasnain-afkar:fast-marker-cluster-subgroups
Open

hasnain-afkar wants to merge 1 commit into
python-visualization:mainfrom
hasnain-afkar:fast-marker-cluster-subgroups

Conversation

@hasnain-afkar

@hasnain-afkar hasnain-afkar commented Nov 29, 2026 •

Copy link
Copy Markdown

Closes #1871.

The marker-clustering guide now shows how to give 2G, 3G, 4G, and 5G sites separate layer controls while clustering all visible sites together. Each category uses a FastMarkerCluster inside a FeatureGroupSubGroup attached to the same parent MarkerCluster. The example uses the existing Folium API.

I ran all eight code cells in the guide and tested the rendered example in Chromium. For all 16 combinations of the four checkboxes, the visible sites matched the selected categories and the on-screen count matched the number of sites. Turning all categories off cleared the markers, and restoring them brought back one cluster of six. The six existing tests for FastMarkerCluster, FeatureGroupSubGroup, and MarkerCluster also passed.

Added instructions for toggling categories in a shared cluster using FeatureGroupSubGroup with FastMarkerCluster.
Copilot AI balanced review requested due to automatic review settings November 29, 2026 05:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

Handling groups in FastMarkerCluster

2 participants