Add GPX file download

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

View File

@@ -126,7 +126,9 @@ class Project extends PhpObject {
if(!Converter::isGeoJsonValid($asProject['geofile'])) Converter::convertToGeoJson($asProject['geofile']);
$asProject['geofile'] = Spot::addTimestampToFilePath(Geo::getFilePath($asProject['geofile'], GeoJson::EXT));
$asProject['geofilepath'] = Spot::addTimestampToFilePath(Geo::getFilePath($asProject['geofile'], GeoJson::EXT));
$asProject['gpxfilepath'] = Spot::addTimestampToFilePath(Geo::getFilePath($asProject['geofile'], Gpx::EXT));
unset($asProject['geofile']);
$asProject['codename'] = $sCodeName;
}
return $bSpecificProj?$asProject:$asProjects;