From f7bd0835c7077ca4f9abd75792d14fc58e485bea Mon Sep 17 00:00:00 2001 From: Ken Schwencke Date: Sat, 4 Jan 2014 15:36:08 -0800 Subject: [PATCH] Update README.md added reference to the maxClusterRadius function ability. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 88bc51e69b..216ea38db3 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Enabled by default (boolean options): Other options * **animateAddingMarkers**: If set to true then adding individual markers to the MarkerClusterGroup after it has been added to the map will add the marker and animate it in to the cluster. Defaults to false as this gives better performance when bulk adding markers. addLayers does not support this, only addLayer with individual Markers. * **disableClusteringAtZoom**: If set, at this zoom level and below markers will not be clustered. This defaults to disabled. [See Example](http://leaflet.github.com/Leaflet.markercluster/example/marker-clustering-realworld-maxzoom.388.html) -* **maxClusterRadius**: The maximum radius that a cluster will cover from the central marker (in pixels). Default 80. Decreasing will make more smaller clusters. +* **maxClusterRadius**: The maximum radius that a cluster will cover from the central marker (in pixels). Default 80. Decreasing will make more smaller clusters. You can also use a function that accepts the current map zoom and returns the maximum cluster radius in pixels. * **polygonOptions**: Options to pass when creating the L.Polygon(points, options) to show the bounds of a cluster * **singleMarkerMode**: If set to true, overrides the icon for all added markers to make them appear as a 1 size cluster * **spiderfyDistanceMultiplier**: Increase from 1 to increase the distance away from the center that spiderfied markers are placed. Use if you are using big marker icons (Default:1) @@ -138,4 +138,4 @@ Performance optimizations could be done so these are handled more gracefully (Ru Leaflet.markercluster is free software, and may be redistributed under the MIT-LICENSE. -[![Build Status](https://travis-ci.org/Leaflet/Leaflet.markercluster.png?branch=master)](https://travis-ci.org/Leaflet/Leaflet.markercluster) \ No newline at end of file +[![Build Status](https://travis-ci.org/Leaflet/Leaflet.markercluster.png?branch=master)](https://travis-ci.org/Leaflet/Leaflet.markercluster)