Format KML
This commit is contained in:
parent
7caa7aeba6
commit
00f2cead36
7 changed files with 246 additions and 77 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue