mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
fix export for gpx files with no attributes
This commit is contained in:
@@ -96,7 +96,9 @@ export function buildGPX(file: GPXFile, exclude: string[]): string {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
gpx.attributes.creator = gpx.attributes.creator ?? 'https://gpx.studio';
|
if (!gpx.attributes)
|
||||||
|
gpx.attributes = {};
|
||||||
|
gpx.attributes['creator'] = gpx.attributes['creator'] ?? 'https://gpx.studio';
|
||||||
gpx.attributes['version'] = '1.1';
|
gpx.attributes['version'] = '1.1';
|
||||||
gpx.attributes['xmlns'] = 'http://www.topografix.com/GPX/1/1';
|
gpx.attributes['xmlns'] = 'http://www.topografix.com/GPX/1/1';
|
||||||
gpx.attributes['xmlns:xsi'] = 'http://www.w3.org/2001/XMLSchema-instance';
|
gpx.attributes['xmlns:xsi'] = 'http://www.w3.org/2001/XMLSchema-instance';
|
||||||
|
Reference in New Issue
Block a user