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

View file

@ -82,9 +82,10 @@ BR.Export = L.Class.extend({
const turnInstructionMode = +this.profile.getProfileVar('turnInstructionMode');
const transportMode = this.profile.getTransportMode();
return BR.Gpx.format(track, turnInstructionMode, transportMode);
case 'kml':
return BR.Kml.format(track);
case 'geojson':
return JSON.stringify(track, null, 2);
case 'kml':
default:
break;
}