diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index b7c3d969a..288845779 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -842,13 +842,11 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? { //If we were in a cluster animation at the time then the opacity and position of our child could be wrong now, so fix it m.setLatLng(m.getLatLng()); m.setOpacity(1); - - return; + } else { + cluster._recursively(bounds, newZoomLevel, 0, function(c) { + c._recursivelyRemoveChildrenFromMap(bounds, previousZoomLevel + 1); + }); } - - cluster._recursively(bounds, newZoomLevel, 0, function (c) { - c._recursivelyRemoveChildrenFromMap(bounds, previousZoomLevel + 1); - }); me._animationEnd(); }, 200); },