From f846b03e749b67f5bd383b05d46eba0925a7e37e Mon Sep 17 00:00:00 2001 From: vcoppe Date: Wed, 4 Sep 2024 22:15:46 +0200 Subject: [PATCH] fix adding elevation to multiple files --- gpx/src/gpx.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/gpx/src/gpx.ts b/gpx/src/gpx.ts index 82e4439b4..3ce6963b7 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) {