kopia lustrzana https://github.com/FacilMap/facilmap
Fetch route elevation profile on reconnect
rodzic
9a30b84af6
commit
2810d6fc8f
|
@ -160,6 +160,7 @@ class Socket {
|
||||||
return this._emit("setRoute", data).then((route) => {
|
return this._emit("setRoute", data).then((route) => {
|
||||||
if(route) { // If unset, a newer submitted route has returned in the meantime
|
if(route) { // If unset, a newer submitted route has returned in the meantime
|
||||||
this.route = route;
|
this.route = route;
|
||||||
|
this.route.elevation = data.elevation; // For reconnect
|
||||||
this.route.trackPoints = this._mergeTrackPoints({}, route.trackPoints);
|
this.route.trackPoints = this._mergeTrackPoints({}, route.trackPoints);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue