Bicycle and foot route profiles (Valhalla bicycle/pedestrian costing); hiking trail colours in the elevation profile; power, splits and best efforts in the profile; TCX import; FIT course export
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 18s

This commit is contained in:
randy committed 2026-11-16 12:18:06 +01:00
1 parent 4c704045c5
commit f8755ea65a
21 files changed
+634 -40

No files matched your search

+6 -1
View File
@@ -366,6 +366,11 @@ export class GpxPanelControl {
// A folder's loose points have no single file they came from.
file.original && { label: "Original file", run: () => this._download(`${gpxFileUrl(file.path)}?download=original`, file.name) },
{ label: "GeoJSON", run: () => this._download(geojsonUrl, `${file.name}.geojson`) },
// A course for a Garmin/Wahoo device to follow.
file.kinds?.some((kind) => kind === "track" || kind === "route") && {
label: "FIT course (Garmin, Wahoo)",
run: () => this._download(`${gpxFileUrl(file.path)}?${new URLSearchParams({ download: "fit", name: file.name })}`, `${file.name}.fit`),
},
]);
}
@@ -984,7 +989,7 @@ export class GpxPanelControl {
// its .gpx/.fit/.geojson entries, so it's accepted here even though the
// tree never shows a .zip itself. .geojson: e.g. a node's GeoJSON
// download, re-imported.
const files = [...fileList].filter((file) => /\.(gpx|fit|geojson|zip)$/i.test(file.name));
const files = [...fileList].filter((file) => /\.(gpx|fit|tcx|geojson|zip)$/i.test(file.name));
if (files.length === 0) return [];
let tree = null;