diff --git a/map.html b/map.html index e84aba7..39faa6d 100644 --- a/map.html +++ b/map.html @@ -163,8 +163,8 @@ map.removeLayer(layer); } }); - markers = []; - updateMarkerList(); + currentJourney.markers = []; + updateMarkersList(); // Call the new function to update the list }); function updateMarkersList() {