brouter-web/js/format/Kml.js
Norbert Renner 00f2cead36 Format KML
2021-04-01 11:53:17 +02:00

7 lines
266 B
JavaScript

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));
},
};