Use togpx fork for now
- with PR 11 merged - referencing jxon fork with namespace prefixes fixed
This commit is contained in:
parent
4c27f5894c
commit
954812cf52
4 changed files with 10 additions and 18 deletions
|
|
@ -226,7 +226,7 @@
|
|||
|
||||
_getWpt: function (hint, cmd, coord) {
|
||||
const extensions = {};
|
||||
// TODO 'locus:' namespace gets removed
|
||||
|
||||
extensions['locus:rteDistance'] = hint.distance;
|
||||
if (hint.time > 0) {
|
||||
extensions['locus:rteTime'] = hint.time;
|
||||
|
|
@ -311,11 +311,6 @@
|
|||
rtept: this._createRoutePoints(gpx),
|
||||
});
|
||||
|
||||
// reorder trk after rte
|
||||
const trk = gpx.trk;
|
||||
delete gpx.trk;
|
||||
gpx.trk = trk;
|
||||
|
||||
return gpx;
|
||||
}.bind(this);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue