[Pkg-javascript-commits] [leaflet-markercluster] 42/479: Fix animated multi zoom out
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:00:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit 6b0e08b5342ee8edfbe111b18f60e40b572935b0
Author: danzel <danzel at localhost.geek.nz>
Date: Thu Jul 19 10:35:13 2012 +1200
Fix animated multi zoom out
---
src/MarkerClusterGroup.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 28ecbbd..910db6d 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git
More information about the Pkg-javascript-commits
mailing list