Remove markers when route is deleted

This commit is contained in:
Unknown 2019-10-02 15:28:37 +02:00
parent 173752c691
commit 1828a642c3

View file

@ -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);