[Pkg-javascript-commits] [leaflet-markercluster] 435/479: Hide spiderfied markers on a big zoom. Fixes #268

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:01:05 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 cf40d8aa8694677275f2c4bac0ed7cb82f413bd6
Author: danzel <danzel at localhost.geek.nz>
Date:   Thu Oct 31 09:13:55 2013 +1300

    Hide spiderfied markers on a big zoom. Fixes #268
---
 src/MarkerCluster.Spiderfier.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/MarkerCluster.Spiderfier.js b/src/MarkerCluster.Spiderfier.js
index 50d1c0a..2a1a6f4 100644
--- a/src/MarkerCluster.Spiderfier.js
+++ b/src/MarkerCluster.Spiderfier.js
@@ -353,10 +353,9 @@ L.MarkerClusterGroup.include({
 
 		if (this._map.options.zoomAnimation) {
 			this._map.on('zoomstart', this._unspiderfyZoomStart, this);
-		} else {
-			//Browsers without zoomAnimation don't fire zoomstart
-			this._map.on('zoomend', this._unspiderfyWrapper, this);
 		}
+		//Browsers without zoomAnimation or a big zoom don't fire zoomstart
+		this._map.on('zoomend', this._noanimationUnspiderfy, this);
 
 		if (L.Path.SVG && !L.Browser.touch) {
 			this._map._initPathRoot();

-- 
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