[Pkg-javascript-commits] [leaflet-markercluster] 05/128: Some of animated stuff works. The lines don't animate as we aren't adding the vector layer initially any more and some other bits are broken too

Jonas Smedegaard dr at jones.dk
Sun Apr 16 06:25:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit 4e3b8252f46436a24313f8458ee80db5232699d1
Author: danzel <danzel at localhost.geek.nz>
Date:   Thu Jan 30 10:02:44 2014 +1300

    Some of animated stuff works. The lines don't animate as we aren't adding the vector layer initially any more and some other bits are broken too
---
 src/MarkerCluster.Spiderfier.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/MarkerCluster.Spiderfier.js b/src/MarkerCluster.Spiderfier.js
index e9c3bbd..0849df8 100644
--- a/src/MarkerCluster.Spiderfier.js
+++ b/src/MarkerCluster.Spiderfier.js
@@ -169,6 +169,8 @@ L.MarkerCluster.include(!L.DomUtil.TRANSITION ? {
 			thisLayerPos = map.latLngToLayerPoint(this._latlng),
 			i, m, leg, newPos;
 
+		group._spiderfying = true;
+
 		//Add markers to map hidden at our center point
 		for (i = childMarkers.length - 1; i >= 0; i--) {
 			m = childMarkers[i];
@@ -261,6 +263,8 @@ L.MarkerCluster.include(!L.DomUtil.TRANSITION ? {
 			}
 		}
 
+		group._spiderfying = false;
+
 		setTimeout(function () {
 			group._animationEnd();
 			group.fire('spiderfied');
@@ -276,6 +280,7 @@ L.MarkerCluster.include(!L.DomUtil.TRANSITION ? {
 			svg = L.Path.SVG && this.SVG_ANIMATION,
 			m, i, a;
 
+		group._spiderfying = true;
 		group._animationStart();
 
 		//Make us visible and bring the child markers back in
@@ -316,6 +321,8 @@ L.MarkerCluster.include(!L.DomUtil.TRANSITION ? {
 			}
 		}
 
+		group._spiderfying = false;
+
 		setTimeout(function () {
 			//If we have only <= one child left then that marker will be shown on the map so don't remove it!
 			var stillThereChildCount = 0;

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