Add GPX link (brouter#152)

This commit is contained in:
Norbert Renner 2022-08-02 20:02:23 +02:00
parent 86bd64a43f
commit dcec6d4b77
3 changed files with 21 additions and 8 deletions

View file

@ -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 () {},