From 1828a642c314956cc85d656812722dc833395d94 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 2 Oct 2019 15:28:37 +0200 Subject: [PATCH] Remove markers when route is deleted --- js/plugin/Routing.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/plugin/Routing.js b/js/plugin/Routing.js index daabe6c..4627a15 100644 --- a/js/plugin/Routing.js +++ b/js/plugin/Routing.js @@ -245,6 +245,7 @@ BR.Routing = L.Routing.extend({ this._waypoints._last = null; this._waypoints.clearLayers(); this._segments.clearLayers(); + this._removeDistanceMarkers(); if (drawEnabled) { this.draw(true);