convert to simple gpx types before export to allow extra fields

This commit is contained in:
vcoppe
2024-04-19 12:17:31 +02:00
parent 219400aa87
commit 0735bfc913
3 changed files with 42 additions and 9 deletions

View File

@@ -56,7 +56,9 @@ export function parseGPX(gpxData: string): GPXFile {
}
export function buildGPX(gpx: GPXFile): string {
export function buildGPX(file: GPXFile): string {
const gpx = file.toGPXFileType();
const builder = new XMLBuilder({
format: true,
ignoreAttributes: false,