Starting again with what has been developed as sandbox/map.

This commit is contained in:
vdv committed 2022-09-11 20:01:12 +02:00
1 parent f81c436f7d
commit 716d05fb3e
17 files changed
+807 -268

No files matched your search

-26
View File
@@ -1,26 +0,0 @@
import _ from 'lodash';
const initialState: any = {
current: {
$: {},
trk: [
{
trkseg: [{ trkpt: [] }],
},
],
},
};
export const appendTrkpt = (gpx:any , trkpt:any) => {
var updatedGpx = _.cloneDeep(gpx);
updatedGpx.trk[0].trkseg[0].trkpt.push(trkpt);
return updatedGpx;
};
export const clearTrkpt = (gpx:any) => {
var updatedGpx = _.cloneDeep(gpx);
updatedGpx.trk[0]=[];
return updatedGpx;
};