Computing bounding boxes when saving GPX files.
This commit is contained in:
1 parent
947f4dff3a
commit
9b23bcec5c
2 files changed
+81
-3
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user