mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-03 17:12:31 +00:00
Import routes elevation and time information (#95)
* Import routes elevation and time information * map routepoint to trackpoint explicitly --------- Co-authored-by: vcoppe <vianney.coppe@gmail.com>
This commit is contained in:
@@ -104,7 +104,7 @@ abstract class GPXTreeLeaf extends GPXTreeElement<GPXTreeLeaf> {
|
||||
}
|
||||
|
||||
// A class that represents a GPX file
|
||||
export class GPXFile extends GPXTreeNode<Track>{
|
||||
export class GPXFile extends GPXTreeNode<Track> {
|
||||
[immerable] = true;
|
||||
|
||||
attributes: GPXFileAttributes;
|
||||
@@ -1586,6 +1586,8 @@ function convertRouteToTrack(route: RouteType): Track {
|
||||
} else {
|
||||
segment.trkpt.push(new TrackPoint({
|
||||
attributes: rpt.attributes,
|
||||
ele: rpt.ele,
|
||||
time: rpt.time,
|
||||
}));
|
||||
}
|
||||
});
|
||||
@@ -1594,4 +1596,4 @@ function convertRouteToTrack(route: RouteType): Track {
|
||||
}
|
||||
|
||||
return track;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user