diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index 28ecbbd93..910db6d1f 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -417,8 +417,7 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? { _animationZoomOut: function (previousZoomLevel, newZoomLevel) { var map = this._map, bounds = this._getExpandedVisibleBounds(), - i, - depthToStartAt = previousZoomLevel - this._topClusterLevel._zoom, + depthToStartAt = 1 + newZoomLevel - this._topClusterLevel._zoom, depthToAnimateIn = previousZoomLevel - newZoomLevel; console.log('animationZoomOut ' + depthToStartAt + ' ' + depthToAnimateIn);