From 04c4956751b8a73c39d126799bed4058fc2665cb Mon Sep 17 00:00:00 2001 From: danzel Date: Thu, 19 Jul 2012 13:26:22 +1200 Subject: [PATCH] Fix zoom but don't change workaround --- src/MarkerCluster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MarkerCluster.js b/src/MarkerCluster.js index b67610afee..24b6ad7e91 100644 --- a/src/MarkerCluster.js +++ b/src/MarkerCluster.js @@ -185,7 +185,7 @@ L.MarkerCluster = L.Marker.extend({ //TODO: depthToAnimateIn affects _isSingleParent, if there is a multizoom we may/may not be. if (c._isSingleParent() /*&& depthToAnimateIn === 1*/) { //TODO: If we are the same as our parent, don't do an animation, just immediately appear c.setOpacity(1); - c._recursivelyRemoveChildrenFromMap(bounds, depthToAnimateIn); //Immediately remove our children as we are replacing them. TODO previousBounds not bounds + c._recursivelyRemoveChildrenFromMap(bounds, depthToAnimateIn - 1); //Immediately remove our children as we are replacing them. TODO previousBounds not bounds } else { c.setOpacity(0); }