fix export

This commit is contained in:
vcoppe
2024-04-27 11:33:14 +02:00
parent 6cc3918530
commit 43f4511ded

View File

@@ -443,7 +443,7 @@ export class TrackSegment extends GPXTreeLeaf {
toTrackSegmentType(): TrackSegmentType { toTrackSegmentType(): TrackSegmentType {
return { 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; 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 { export class Waypoint {