From 9227311e5e103c7eb36f52919ff63d834b9691ac Mon Sep 17 00:00:00 2001 From: danzel Date: Tue, 24 Jul 2012 17:05:22 +1200 Subject: [PATCH] Fix clusters not appearing on fast zoom out then zoom in one. Fixes #12 --- src/MarkerClusterGroup.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index 5e1f6ef6f..116fff766 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -308,6 +308,8 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? { //Immediately fire an event to update the opacity and locations (If we immediately set it they won't animate) setTimeout(function () { //Update opacities + me._topClusterLevel._recursivelyBecomeVisible(bounds, depthToStartAt + depthToDescend); + //TODO Maybe? Update markers in _recursivelyBecomeVisible for (i in me._layers) { var n = me._layers[i];