diff --git a/gpx/src/gpx.ts b/gpx/src/gpx.ts index 82e4439b..3ce6963b 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) {