Wpt editor: we can add waypoints (at last !)
This commit is contained in:
1 parent
6451b110b9
commit
55830251e0
4 files changed
+125
-21
No files matched your search
+3
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user