speed improvements for map (tbc)

This commit is contained in:
Christian Beutel
2025-08-02 22:02:59 +02:00
parent 396e64b5a6
commit 1c10e90db7
14 changed files with 230 additions and 113 deletions

View File

@@ -89,11 +89,8 @@
$data.distance = undefined;
return;
}
const gpxObject = await GPX.parse(trailData);
if (gpxObject instanceof Error) {
throw gpxObject;
}
const gpxObject = GPX.parse(trailData);
const totals = gpxObject.features;
$data.duration = totals.duration / 1000;

View File

@@ -58,7 +58,7 @@
};
}
trail = (await gpx2trail(log.expand.gpx_data!)).trail;
trail = gpx2trail(log.expand.gpx_data!).trail;
trail.id = log.id;
trail.expand!.gpx_data = log.expand.gpx_data;