mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-03 09:12:30 +00:00
support gpx routes by converting them to tracks
This commit is contained in:
@@ -8,7 +8,7 @@ export function parseGPX(gpxData: string): GPXFile {
|
||||
attributeNamePrefix: "",
|
||||
attributesGroupName: 'attributes',
|
||||
isArray: (name: string) => {
|
||||
return name === 'trk' || name === 'trkseg' || name === 'trkpt' || name === 'wpt';
|
||||
return name === 'trk' || name === 'trkseg' || name === 'trkpt' || name === 'wpt' || name === 'rte' || name === 'rtept' || name === 'gpxx:rpt';
|
||||
},
|
||||
attributeValueProcessor(attrName, attrValue, jPath) {
|
||||
if (attrName === 'lat' || attrName === 'lon') {
|
||||
|
Reference in New Issue
Block a user