diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-17 10:34:06 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-17 10:34:06 +0200 |
| commit | 7c39bc7124f89aa28aaeaffb60b71af9e6335295 (patch) | |
| tree | 56f2948a4e0af8fa107e618caeba3a4dd50a269f /web/frontend/ride-detail-map.ts | |
| parent | 2a20ea69a3d62c32c09e62e756a872a3042372b2 (diff) | |
refactor(web): split ride detail rendering concerns
Diffstat (limited to 'web/frontend/ride-detail-map.ts')
| -rw-r--r-- | web/frontend/ride-detail-map.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/frontend/ride-detail-map.ts b/web/frontend/ride-detail-map.ts index bd19412..dcc2b60 100644 --- a/web/frontend/ride-detail-map.ts +++ b/web/frontend/ride-detail-map.ts @@ -1,5 +1,5 @@ import { clamp } from "./ride-detail-logic.js"; -import type { ClimbBounds, RideDetailColors, RideProfilePoint, RideRoute } from "./types.js"; +import type { ClimbBounds, RideMapColors, RideProfilePoint, RideRoute } from "./types.js"; import type { CircleMarker, LeafletMouseEvent, Map as LeafletMap, Polyline } from "leaflet"; type LeafletApi = typeof import("leaflet"); @@ -10,13 +10,13 @@ interface RideDetailMapOptions { route: RideRoute; points: RideProfilePoint[]; climbs: ClimbBounds[]; - colors: RideDetailColors; + colors: RideMapColors; } export class RideDetailMap { private readonly leaflet: LeafletApi; private readonly points: RideProfilePoint[]; - private readonly colors: RideDetailColors; + private readonly colors: RideMapColors; private readonly map: LeafletMap; private readonly climbLayers: (Polyline | null)[]; private readonly routeCursor: CircleMarker; |