mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-03 17:12:31 +00:00
fix export
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user