Displaying trksegs through geojson.
This commit is contained in:
1 parent
ab7374f360
commit
37fd31a040
4 files changed
+41
-10
No files matched your search
+1
-1
@@ -40,7 +40,7 @@ export const getTrkseg = async (params: any) => {
|
||||
//level 1
|
||||
if (row.doc.type === 'trkpt') {
|
||||
target.splice(1);
|
||||
appendToArray(target.at(-1), row.doc.type, row.doc._id);
|
||||
appendToArray(target.at(-1), row.doc.type, row.doc.doc);
|
||||
target.push(row.doc.doc);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user