From 415497fdcf26969800115adf04f8517df61fe148 Mon Sep 17 00:00:00 2001 From: danzel Date: Mon, 13 Aug 2012 10:08:25 +1200 Subject: [PATCH] As we no longer move cluster we don't need to update them in the DistanceGrid as we cluster --- src/MarkerClusterGroup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index 8fb0882d6..d7d50a9a2 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -292,7 +292,6 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ if (cluster) { cluster._addChild(marker); - clusters.updateObject(cluster, this._map.project(cluster.getLatLng(), zoom)); } else { // otherwise, look through all of the markers we haven't managed to cluster and see if we should form a cluster with them newCluster = this._clusterOne(unclustered, marker, markerPoint); @@ -319,6 +318,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ return true; } + return false; }); unclustered.eachObject(function (marker) {