Fix animated multi zoom out

This commit is contained in:
danzel
2012-07-19 10:35:13 +12:00
parent 1fcec54dcf
commit 6b0e08b534
+1 -2
View File
@@ -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);