Trails by kind: the extract keeps hiking, foot, bicycle, mtb and ski routes, each with a kind (educational told apart by educational=yes, the green diagonal marking or the name); versioned so the next offline build redoes old files; the overlay picks kinds (hiking and educational by default), the elevation profile shows the ones for the activity
CI / check (push) Successful in 21s
CI / deploy (push) Successful in 18s

This commit is contained in:
randy committed 2026-11-27 14:40:46 +01:00
1 parent 4bcd85f269
commit b32f7d3bd3
7 files changed
+92 -15

No files matched your search

+5 -1
View File
@@ -260,7 +260,11 @@ export class TrackProfilePanel {
// track follows (several stacked where trails share the path), blank off
// trail. Point i's colors span from it to the next point.
_renderTrailBand() {
const colors = trailColorsAlong(this._profile);
// The trails the activity uses: a ride the cycling routes, skiing the
// ski routes, on foot (or unknown) the hiking and educational trails.
if (/driv|motor|car/i.test(this._activityType)) return null;
const kinds = this._ride ? ["bicycle"] : /ski/i.test(this._activityType) ? ["ski"] : ["hiking", "educational"];
const colors = trailColorsAlong(this._profile, kinds);
if (!colors) return null;
const HEIGHT = 10;
const toX = (p) => this._fx(p) * VIEWBOX_WIDTH;