Add GPX link (brouter#152)
This commit is contained in:
parent
86bd64a43f
commit
dcec6d4b77
3 changed files with 21 additions and 8 deletions
|
|
@ -36,6 +36,10 @@ BR.Gpx = {
|
|||
return Object.assign(
|
||||
{
|
||||
name: feature.properties.name,
|
||||
link: {
|
||||
'@href': location.href,
|
||||
text: BR.conf.appName || 'BRouter-Web',
|
||||
},
|
||||
},
|
||||
trk
|
||||
);
|
||||
|
|
@ -50,7 +54,7 @@ BR.Gpx = {
|
|||
const gpxTransform = new GpxTransform(voiceHintsTransform);
|
||||
|
||||
let gpx = togpx(geoJson, {
|
||||
creator: 'BRouter-Web ' + BR.version,
|
||||
creator: (BR.conf.appName || 'BRouter-Web') + ' ' + BR.version,
|
||||
featureTitle: function () {},
|
||||
featureDescription: function () {},
|
||||
featureCoordTimes: function () {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue