Fetch route elevation profile on reconnect

pull/108/head
Candid Dauth 2017-05-26 16:07:22 +02:00
rodzic 9a30b84af6
commit 2810d6fc8f
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -160,6 +160,7 @@ class Socket {
return this._emit("setRoute", data).then((route) => {
if(route) { // If unset, a newer submitted route has returned in the meantime
this.route = route;
this.route.elevation = data.elevation; // For reconnect
this.route.trackPoints = this._mergeTrackPoints({}, route.trackPoints);
}