From 1fd27f3ca5ae6e85eadc9401930f6c7a598e8ace Mon Sep 17 00:00:00 2001 From: Jan-Victor Krille Date: Tue, 23 Apr 2013 17:00:46 +0200 Subject: [PATCH 1/2] Add a real world example that shows a bug. --- ...er-clustering-disappearing-marker-bug.html | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 example/marker-clustering-disappearing-marker-bug.html diff --git a/example/marker-clustering-disappearing-marker-bug.html b/example/marker-clustering-disappearing-marker-bug.html new file mode 100644 index 0000000000..5264c1d709 --- /dev/null +++ b/example/marker-clustering-disappearing-marker-bug.html @@ -0,0 +1,109 @@ + + + + Leaflet debug page + + + + + + + + + + + + + + +
+ Click on the cluster to spiderfy and then
+
+
Note: The marker on the old cluster position comes back on next move or on map scrolling.
+ + + + From 654926aff2b387ba76d53294cfdbb9dca19df812 Mon Sep 17 00:00:00 2001 From: Jan-Victor Krille Date: Tue, 23 Apr 2013 17:16:50 +0200 Subject: [PATCH 2/2] Fix IDs in example data. --- ...arker-clustering-disappearing-marker-bug.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/example/marker-clustering-disappearing-marker-bug.html b/example/marker-clustering-disappearing-marker-bug.html index 5264c1d709..86317ab307 100644 --- a/example/marker-clustering-disappearing-marker-bug.html +++ b/example/marker-clustering-disappearing-marker-bug.html @@ -26,28 +26,28 @@ var stationJson = { "type":"FeatureCollection", "features":[ - {"type":"Feature","id":2,"properties":{"type":"station","name":"Appenzell"},"geometry":{"type":"Point","coordinates":[9.40991,47.32849]}}, - {"type":"Feature","id":6,"properties":{"type":"station","name":"Gais"},"geometry":{"type":"Point","coordinates":[9.45107,47.36073]}}, - {"type":"Feature","id":36,"properties":{"type":"station","name":"St. Gallen"},"geometry":{"type":"Point","coordinates":[9.36901,47.42208]}}, - {"type":"Feature","id":51,"properties":{"type":"station","name":"Teufen"},"geometry":{"type":"Point","coordinates":[9.390178,47.390157]}} + {"type":"Feature","id":1,"properties":{"type":"station","name":"Appenzell"},"geometry":{"type":"Point","coordinates":[9.40991,47.32849]}}, + {"type":"Feature","id":2,"properties":{"type":"station","name":"Gais"},"geometry":{"type":"Point","coordinates":[9.45107,47.36073]}}, + {"type":"Feature","id":3,"properties":{"type":"station","name":"St. Gallen"},"geometry":{"type":"Point","coordinates":[9.36901,47.42208]}}, + {"type":"Feature","id":4,"properties":{"type":"station","name":"Teufen"},"geometry":{"type":"Point","coordinates":[9.390178,47.390157]}} ]}; var trainJson = [{ "type":"FeatureCollection", "features":[ - {"type":"Feature","id":36,"properties":{"type":"train","name":"Testtrain"},"geometry":{"type":"Point","coordinates":[9.36901,47.42208]}} + {"type":"Feature","id":10,"properties":{"type":"train","name":"Testtrain"},"geometry":{"type":"Point","coordinates":[9.36901,47.42208]}} ]},{ "type":"FeatureCollection", "features":[ - {"type":"Feature","id":51,"properties":{"type":"train","name":"Testtrain"},"geometry":{"type":"Point","coordinates":[9.390178,47.390157]}} + {"type":"Feature","id":10,"properties":{"type":"train","name":"Testtrain"},"geometry":{"type":"Point","coordinates":[9.390178,47.390157]}} ]},{ "type":"FeatureCollection", "features":[ - {"type":"Feature","id":6,"properties":{"type":"train","name":"Testtrain"},"geometry":{"type":"Point","coordinates":[9.45107,47.36073]}} + {"type":"Feature","id":10,"properties":{"type":"train","name":"Testtrain"},"geometry":{"type":"Point","coordinates":[9.45107,47.36073]}} ]},{ "type":"FeatureCollection", "features":[ - {"type":"Feature","id":2,"properties":{"type":"train","name":"Testtrain"},"geometry":{"type":"Point","coordinates":[9.40991,47.32849]}} + {"type":"Feature","id":10,"properties":{"type":"train","name":"Testtrain"},"geometry":{"type":"Point","coordinates":[9.40991,47.32849]}} ]}]; var trainPosition = 0,