Fix clusters not appearing on fast zoom out then zoom in one. Fixes #12

This commit is contained in:
danzel
2012-07-24 17:05:22 +12:00
parent b7be42776c
commit 9227311e5e
+2
View File
@@ -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];