refs #16 fix alt/time preservation when splitting a modified track

merge-requests/1/head
Julien Veyssier 2017-05-24 13:40:15 +02:00
parent 5fead856af
commit 2515fe0553
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,9 @@ L.Edit.PolyVerticesEdit.include({
} }
if (this._markers[m]._latlng.time) { if (this._markers[m]._latlng.time) {
times[found].push(this._markers[m]._latlng.time); times[found].push(this._markers[m]._latlng.time);
}
else {
times[found].push(null);
} }
if (this._markers[m]._middleRight && this._markers[m]._middleRight._leaflet_id == e.target._leaflet_id) if (this._markers[m]._middleRight && this._markers[m]._middleRight._leaflet_id == e.target._leaflet_id)
found = 1; // We find the cut point found = 1; // We find the cut point