Wpt editor: we can add waypoints (at last !)

This commit is contained in:
vdv committed 2023-02-02 16:10:20 +01:00
1 parent 6451b110b9
commit 55830251e0
4 files changed
+125 -21

No files matched your search

+3 -2
View File
@@ -427,11 +427,12 @@ export const putGpx = async (params: any) => {
let { id, gpx } = params;
if (id === 'new') {
const date = !!gpx.metadata.time ? new Date(gpx.metadata.time) : new Date();
id = getUri('gpx', {
gpx: intToGpxId(new Date(gpx.metadata.time).valueOf()),
gpx: intToGpxId(date.valueOf()),
});
}
console.log({ caller: 'putGpx', params, id, gpx });
const extensions = gpx?.extensions;
gpx.extensions = undefined;