Format KML

This commit is contained in:
Norbert Renner 2021-04-01 11:53:17 +02:00
parent 7caa7aeba6
commit 00f2cead36
7 changed files with 246 additions and 77 deletions

7
js/format/Kml.js Normal file
View file

@ -0,0 +1,7 @@
BR.Kml = {
format: function (geoJson) {
// don't export properties as <ExtendedData>, probably no need for it
geoJson.features[0].properties = { name: geoJson.features[0].properties.name };
return BR.Xml.pretty(tokml(geoJson));
},
};