speed improvements for map (tbc)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user