[Pkg-javascript-commits] [leaflet-markercluster] 162/479: As we no longer move cluster we don't need to update them in the DistanceGrid as we cluster

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit 415497fdcf26969800115adf04f8517df61fe148
Author: danzel <danzel at localhost.geek.nz>
Date:   Mon Aug 13 10:08:25 2012 +1200

    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 8fb0882..d7d50a9 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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git



More information about the Pkg-javascript-commits mailing list