diff --git a/gpx/src/gpx.ts b/gpx/src/gpx.ts index 82e4439..3ce6963 100644 --- a/gpx/src/gpx.ts +++ b/gpx/src/gpx.ts @@ -390,6 +390,7 @@ export class GPXFile extends GPXTreeNode{ waypoint.ele = elevations[index++]; } }); + elevations.splice(0, index); } setStyle(style: LineStyleExtension) {