Skip to content

Make cluster work without maxClusterRadius being set.#251

Merged
mathewjordan merged 1 commit intomainfrom
issue-250
Apr 17, 2026
Merged

Make cluster work without maxClusterRadius being set.#251
mathewjordan merged 1 commit intomainfrom
issue-250

Conversation

@markpbaggett
Copy link
Copy Markdown
Member

It looks like Leaflet's built-in default of 80px is too tight for the 40×40px thumbnail markers used by Canopy. This causes markers to not visually cluster at typical zoom levels. Setting the default to 160px (4× the marker size) ensures clustering works out of the box without requiring maxClusterRadius to be set explicitly on each <Map>. This also shouldn't interfere with anyone who does cluster={false}.

@mathewjordan mathewjordan linked an issue Apr 17, 2026 that may be closed by this pull request
@mathewjordan mathewjordan merged commit 8dec45c into main Apr 17, 2026
1 check passed
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.

MapCluster no longer works

2 participants