Add missing gx namespace for kml extensions

According to https://developers.google.com/kml/documentation/kmlreference#kml-extension-namespace-and-the-gx-prefix

> This namespace URI must be added to the <kml> element in any KML file using gx-prefixed elements

As the exported kml tracks always contain such elements, add
the namespace.
pull/2967/head
StefanBruens 2023-08-13 20:47:33 +02:00 committed by GitHub
parent 53aaffab0b
commit a1c3d83401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ function saveKML(track,title) {
track = filterGPSCoordinates(track);
// Now output KML
var kml = `<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">
<Document>
<Schema id="schema">
${track[0].Heartrate!==undefined ? `<gx:SimpleArrayField name="heartrate" type="int">