use Routing.draw instead of Routing.Draw methods
This commit is contained in:
parent
28957b0471
commit
e822c9a21c
1 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ BR.Routing = L.Routing.extend({
|
|||
var drawEnabled = this._draw._enabled;
|
||||
var current = this._waypoints._first;
|
||||
|
||||
this._draw.disable();
|
||||
this.draw(false);
|
||||
|
||||
if (current === null) { return; }
|
||||
this._removeMarkerEvents(current);
|
||||
|
|
@ -115,7 +115,7 @@ BR.Routing = L.Routing.extend({
|
|||
this._segments.clearLayers();
|
||||
|
||||
if (drawEnabled) {
|
||||
this._draw.enable();
|
||||
this.draw(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue