Add 'upload GPX-trace to OSM' code, small improvements to gps_track-layer

This commit is contained in:
Pieter Vander Vennet 2022-02-16 00:56:48 +01:00
parent e721146ca1
commit 9cd83af941
5 changed files with 98 additions and 6 deletions

View file

@ -340,7 +340,7 @@ export class GeoOperations {
return turf.lineIntersect(feature, otherFeature).features.map(p => <[number, number]>p.geometry.coordinates)
}
public static AsGpx(feature, generatedWithLayer?: LayerConfig) {
public static AsGpx(feature, generatedWithLayer?: LayerConfig) : string{
const metadata = {}
const tags = feature.properties