As we no longer move cluster we don't need to update them in the DistanceGrid as we cluster

This commit is contained in:
danzel
2012-08-13 10:13:40 +12:00
parent f3fddb835d
commit 415497fdcf
+1 -1
View File
@@ -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) {