Add GPX file download

This commit is contained in:
2020-01-02 14:57:02 +01:00
parent 1cf03b6d15
commit 502147cb0f
6 changed files with 19 additions and 4 deletions

View File

@@ -142,7 +142,7 @@ function initProject(sProjectCodeName){
//Project Geojson: Hike track
$.ajax({
dataType: 'json',
url: self.vars(['project', 'geofile']),
url: self.vars(['project', 'geofilepath']),
mimeType: 'application/json'
})
).done(function(aoMessages, aoTracks) {
@@ -249,6 +249,7 @@ function initSpotMessages(aoMessages, aoTracks) {
var $Label = $('<label>').append($('<div>')
.append($Radio)
.append($('<span>').text(' '+asProject.name))
.append($('<a>', {'class':'fa fa-download push-left', href:asProject.gpxfilepath}).click(function(e){e.stopPropagation();}))
);
$Labels.append($Label);
});