Computing bounding boxes when saving GPX files.

This commit is contained in:
vdv committed 2022-11-15 15:24:21 +01:00
1 parent 947f4dff3a
commit 9b23bcec5c
2 files changed
+81 -3

No files matched your search

+11 -1
View File
@@ -26,7 +26,17 @@ const GpxImport: React.FC<{}> = () => {
const startTime = new Date(findStartTime(gpx)!);
dispatch({
action: 'pruneAndSaveImportedGpx',
params: { id: { gpx: intToGpxId(startTime.valueOf()) }, gpx: gpx },
params: {
id: { gpx: intToGpxId(startTime.valueOf()) },
gpx: gpx,
tech: {
lastModified: new Date(file.lastModified).toISOString(),
importDate: new Date().toISOString(),
name: file.name,
size: file.size,
type: file.type,
},
},
});
// pushGpx(db, {
// gpx,