changeset 115:f9827ab0f35b

livemap: clear on go
author Lewin Bormann <lbo@spheniscida.de>
date Thu, 31 Dec 2020 19:42:37 +0100
parents 4060bc56cab7
children 32dd1f4174e9
files assets/livemap.html
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/assets/livemap.html	Thu Dec 31 19:36:06 2020 +0100
+++ b/assets/livemap.html	Thu Dec 31 19:42:37 2020 +0100
@@ -92,6 +92,8 @@
         for (var i = 0; i < allMarkers.length; i++) {
             allMarkers[i].remove();
         }
+        current_marker.remove();
+        current_circle.remove();
     }
 
     // New points are available. Display them on the map and update the marker.