fix showing tailer at start or after deleting last waypoint
This commit is contained in:
parent
929ef35a12
commit
92730009e0
1 changed files with 2 additions and 2 deletions
|
|
@ -67,12 +67,12 @@ BR.Routing = L.Routing.extend({
|
||||||
|
|
||||||
// hide trailer over controls and outside map
|
// hide trailer over controls and outside map
|
||||||
function show() {
|
function show() {
|
||||||
if (this._hidden) {
|
if (this._hidden && this._parent._waypoints._first) {
|
||||||
this._show();
|
this._show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function hide() {
|
function hide() {
|
||||||
if (!this._hidden) {
|
if (!this._hidden && this._parent._waypoints._first) {
|
||||||
this._hide();
|
this._hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue