fix export
This commit is contained in:
parent
6cc3918530
commit
43f4511ded
1 changed files with 10 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue