Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Marker Clustering - How to change the clustering tolerance #327

Open
hyungouk opened this issue Jan 27, 2017 · 1 comment
Open

Marker Clustering - How to change the clustering tolerance #327

hyungouk opened this issue Jan 27, 2017 · 1 comment

Comments

@hyungouk
Copy link

I am currently using angular ui-leaflet to deploy markers with marker clustering similar to http://angular-ui.github.io/ui-leaflet/examples/0000-viewer.html#/markers/clustering-without-overlays-example

I wonder if there is anyway to change the clustering distance tolerance.
for example, on zoom level 13, two markers are about 4 blocks away on the map. then when the zoom level becomes 12, the two markers get clustered. But, I would like to reduce the cluster starting distance so that they still remains as separate markers on the map, then get clustered on zoom level 11.

@BAByrne
Copy link

BAByrne commented Feb 16, 2017

maxClusterRadius allows you to "use a function that accepts the current map zoom and returns the maximum cluster radius in pixels." This allows you to customize the cluster radius at each zoom level.

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

No branches or pull requests

2 participants