mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
fix export
This commit is contained in:
@@ -443,7 +443,7 @@ export class TrackSegment extends GPXTreeLeaf {
|
||||
|
||||
toTrackSegmentType(): TrackSegmentType {
|
||||
return {
|
||||
trkpt: this.trkpt
|
||||
trkpt: this.trkpt.map((point) => point.toTrackPointType())
|
||||
};
|
||||
}
|
||||
|
||||
@@ -516,6 +516,15 @@ export class TrackPoint {
|
||||
}
|
||||
this.extensions["gpxtpx:TrackPointExtension"]["gpxtpx:Extensions"]["surface"] = surface;
|
||||
}
|
||||
|
||||
toTrackPointType(): TrackPointType {
|
||||
return {
|
||||
attributes: this.attributes,
|
||||
ele: this.ele,
|
||||
time: this.time,
|
||||
extensions: this.extensions,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
export class Waypoint {
|
||||
|
Reference in New Issue
Block a user