kopia lustrzana https://github.com/FacilMap/facilmap
31 wiersze
1.3 KiB
Plaintext
31 wiersze
1.3 KiB
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="FacilMap" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
|
|
<metadata>
|
|
<name><%=padData.name%></name>
|
|
<time><%=time%></time>
|
|
</metadata>
|
|
<% for(let marker of markers) { -%>
|
|
<wpt lat="<%=marker.lat%>" lon="<%=marker.lon%>"<% if(marker.ele != null) { %> ele="<%=marker.ele%>"<% } %>>
|
|
<name><%=marker.name%></name>
|
|
<desc><%=dataToText(types[marker.typeId].fields, marker.data)%></desc>
|
|
</wpt>
|
|
<% } -%>
|
|
<% for(let line of lines) { -%>
|
|
<% let t = (useTracks || line.mode == "track"); -%>
|
|
<<%=t ? 'trk' : 'rte'%>>
|
|
<name><%=line.name%></name>
|
|
<desc><%=dataToText(types[line.typeId].fields, line.data)%></desc>
|
|
<% if(t) { -%>
|
|
<trkseg>
|
|
<% for(let trackPoint of line.trackPoints) { -%>
|
|
<trkpt lat="<%=trackPoint.lat%>" lon="<%=trackPoint.lon%>"<% if(trackPoint.ele != null) { %> ele="<%=trackPoint.ele%>"<% } %> />
|
|
<% } -%>
|
|
</trkseg>
|
|
<% } else { -%>
|
|
<% for(let routePoint of line.routePoints) { %>
|
|
<rtept lat="<%=routePoint.lat%>" lon="<%=routePoint.lon%>" />
|
|
<% } -%>
|
|
<% } -%>
|
|
</<%=t ? 'trk' : 'rte'%>>
|
|
<% } -%>
|
|
</gpx> |