kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Include SMP track notes in GPX export
rodzic
99f17befc0
commit
1dc744460a
|
@ -32,7 +32,7 @@
|
|||
{{ props.row.publicTransport.description }}
|
||||
</div>
|
||||
</div>
|
||||
<article class="routeDescr" v-html="linkifyCoordinates(props.row.description)" />
|
||||
<article class="routeDescr" v-html="linkifyCoordinates(props.row.htmlDescription ? props.row.htmlDescription : props.row.description)" />
|
||||
<div class="author">by {{ props.row.author }}</div>
|
||||
<div class="track-download" v-if="props.row.track">
|
||||
<TrackLink :route="props.row" :summit="summit"><font-awesome-icon :icon="['far', 'file-download']" class="fa-icon" /> Download track (.gpx)</TrackLink>
|
||||
|
|
|
@ -4,10 +4,11 @@
|
|||
|
||||
<script>
|
||||
import tracks from '../mixins/tracks.js'
|
||||
import utils from '../mixins/utils.js'
|
||||
|
||||
export default {
|
||||
name: 'TrackLink',
|
||||
mixins: [tracks],
|
||||
mixins: [tracks, utils],
|
||||
props: {
|
||||
route: Object,
|
||||
summit: Object
|
||||
|
@ -42,8 +43,9 @@ export default {
|
|||
</link>
|
||||
</metadata>
|
||||
<trk>
|
||||
<name>${this.route.title}</name>
|
||||
<name>${this.escapeHtml(this.route.title)}</name>
|
||||
<src>${this.route.author}</src>
|
||||
<desc>${this.escapeHtml(this.route.description)}</desc>
|
||||
<trkseg>
|
||||
${trkpts.join('\n')}
|
||||
</trkseg>
|
||||
|
|
|
@ -48,7 +48,8 @@ export default {
|
|||
routes.push({
|
||||
id: track.hdr_id,
|
||||
title: track.track_title,
|
||||
description: '<p>' + this.escapeHtml(track.track_notes) + '</p><p><small>Track imported from <a href="https://www.sotamaps.org" target="_blank">SMP</a></small></p>',
|
||||
htmlDescription: '<p>' + this.escapeHtml(track.track_notes) + '</p><p><small>Track imported from <a href="https://www.sotamaps.org" target="_blank">SMP</a></small></p>',
|
||||
description: track.track_notes,
|
||||
author: track.callsign,
|
||||
distance,
|
||||
ascent,
|
||||
|
|
Ładowanie…
Reference in New Issue