From 6dc3ce8a027e253d1ad89ae3056bfc0a0c929aef Mon Sep 17 00:00:00 2001 From: Adrien Grsmto Date: Tue, 20 May 2014 14:21:16 +0200 Subject: [PATCH] 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 194973ac26..eb14f55479 100644 --- a/example/old-bugs/remove-when-spiderfied.html +++ b/example/old-bugs/remove-when-spiderfied.html @@ -19,7 +19,7 @@
-
+
Bug #54. Spiderfy the cluster then click the button. Should result in 2 markers right beside each other on the map.
Bug #53. Spiderfy the cluster then click the button. Spider lines remain on the map.
Bug #49. Spiderfy the cluster then click the second button. Spider lines remain on the map. Click the map to get an error. @@ -56,6 +56,9 @@ L.DomUtil.get('doit2').onclick = function () { markers.clearLayers(); }; + L.DomUtil.get('doit3').onclick = function () { + markers.removeLayers(markersList); + };