diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-01 15:32:38 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-01 15:32:38 +0200 |
| commit | 7b6bd3ae858c5d7877f9ef137a3ff3d6f71ce1fc (patch) | |
| tree | 28a54e79a6d3c124adca760a38844187bc84e21b /web/frontend/ride-detail-boundaries.ts | |
| parent | 793d2032041335004427c10f2edb7002df20a990 (diff) | |
feat: Analyse and fix elevation issues
Diffstat (limited to 'web/frontend/ride-detail-boundaries.ts')
| -rw-r--r-- | web/frontend/ride-detail-boundaries.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/frontend/ride-detail-boundaries.ts b/web/frontend/ride-detail-boundaries.ts index 22a1255..a9bb8e1 100644 --- a/web/frontend/ride-detail-boundaries.ts +++ b/web/frontend/ride-detail-boundaries.ts @@ -118,6 +118,7 @@ export class RideBoundaryController { boundaryLabel(index: number): string { const point = this.points[index]; - return `${formatDistance(point.distanceKm)} · ${formatElevation(point.elevationM)}`; + const idx = point.index ?? index; + return `#${idx} · ${formatDistance(point.distanceKm)} · ${formatElevation(point.elevationM)}`; } } |
