[Pkg-javascript-commits] [leaflet-markercluster] 189/219: Corrected _spiderfierOnRemove to use no animation
Jonas Smedegaard
dr at jones.dk
Sat May 7 09:39:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit c4bc5759ab8e725c7e5bee83b5e3de2a111fdf8b
Author: ghybs <ghybs1 at gmail.com>
Date: Fri Nov 27 15:07:50 2015 +0400
Corrected _spiderfierOnRemove to use no animation
to avoid leaving class "leaflet-cluster-anim" on mapPane when the MCG is removed from map while it is spiderfied (see Leaflet/Leaflet.markercluster#605)
---
src/MarkerCluster.Spiderfier.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/MarkerCluster.Spiderfier.js b/src/MarkerCluster.Spiderfier.js
index 70eb3a9..73fcafe 100644
--- a/src/MarkerCluster.Spiderfier.js
+++ b/src/MarkerCluster.Spiderfier.js
@@ -362,7 +362,9 @@ L.MarkerClusterGroup.include({
this._map.off('zoomstart', this._unspiderfyZoomStart, this);
this._map.off('zoomanim', this._unspiderfyZoomAnim, this);
- this._unspiderfy(); //Ensure that markers are back where they should be
+ //Ensure that markers are back where they should be
+ // Use no animation to avoid a sticky leaflet-cluster-anim class on mapPane
+ this._noanimationUnspiderfy();
},
//On zoom start we add a zoomanim handler so that we are guaranteed to be last (after markers are animated)
--
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