Remove markers when route is deleted
This commit is contained in:
parent
173752c691
commit
1828a642c3
1 changed files with 1 additions and 0 deletions
|
|
@ -245,6 +245,7 @@ BR.Routing = L.Routing.extend({
|
||||||
this._waypoints._last = null;
|
this._waypoints._last = null;
|
||||||
this._waypoints.clearLayers();
|
this._waypoints.clearLayers();
|
||||||
this._segments.clearLayers();
|
this._segments.clearLayers();
|
||||||
|
this._removeDistanceMarkers();
|
||||||
|
|
||||||
if (drawEnabled) {
|
if (drawEnabled) {
|
||||||
this.draw(true);
|
this.draw(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue