[Pkg-javascript-commits] [leaflet-markercluster] 39/219: Add test case for a bug when calling removeLayers when spiderified

Jonas Smedegaard dr at jones.dk
Sat May 7 09:39:09 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 6dc3ce8a027e253d1ad89ae3056bfc0a0c929aef
Author: Adrien Grsmto <grsmto at gmail.com>
Date:   Tue May 20 14:21:16 2014 +0200

    Add test case for a bug when calling removeLayers when spiderified
---
 example/old-bugs/remove-when-spiderfied.html | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/example/old-bugs/remove-when-spiderfied.html b/example/old-bugs/remove-when-spiderfied.html
index 194973a..eb14f55 100644
--- a/example/old-bugs/remove-when-spiderfied.html
+++ b/example/old-bugs/remove-when-spiderfied.html
@@ -19,7 +19,7 @@
 <body>
 
 	<div id="map"></div>
-	<button id="doit">Remove and add direct to map</button><button id="doit2">clearLayers</button><br/>
+	<button id="doit">Remove and add direct to map</button><button id="doit2">clearLayers</button><button id="doit3">removeLayers</button><br/>
 	<span>Bug <a href="https://github.com/danzel/Leaflet.markercluster/issues/54">#54</a>. Spiderfy the cluster then click the button. Should result in 2 markers right beside each other on the map.</span><br/>
 	<span>Bug <a href="https://github.com/danzel/Leaflet.markercluster/issues/53">#53</a>. Spiderfy the cluster then click the button. Spider lines remain on the map.</span><br/>
 	<span>Bug <a href="https://github.com/danzel/Leaflet.markercluster/issues/49">#49</a>. Spiderfy the cluster then click the second button. Spider lines remain on the map. Click the map to get an error.</span>
@@ -56,6 +56,9 @@
 		L.DomUtil.get('doit2').onclick = function () {
 			markers.clearLayers();
 		};
+		L.DomUtil.get('doit3').onclick = function () {
+			markers.removeLayers(markersList);
+		};
 
 	</script>
 </body>

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