Source code of (fork)
git clone git://
Log | Files | Refs | LICENSE

commit 6fccfc50f7963f38e120eeb7f4eb08ce88a8f097
parent 4163b36921d867f314de5351e079bd3d8ce6e444
Author: Sergey Orlov <>
Date:   Mon, 23 Aug 2021 13:48:26 +0200

tracks: do not request elevations when saving tracks

Context menu passes original mouse event to callback functions. This
event was interpreted as "addElevations" parameter for "saveTrackAsFile"
function. Fixed by replacing currying with an arrow function without

Fixes #821

Msrc/lib/leaflet.control.track-list/track-list.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/leaflet.control.track-list/track-list.js b/src/lib/leaflet.control.track-list/track-list.js @@ -523,8 +523,8 @@ L.Control.TrackList = L.Control.extend({ '-', {text: 'Delete', callback: this.removeTrack.bind(this, track)}, '-', - {text: 'Save as GPX', callback: this.saveTrackAsFile.bind(this, track, geoExporters.saveGpx, '.gpx')}, - {text: 'Save as KML', callback: this.saveTrackAsFile.bind(this, track, geoExporters.saveKml, '.kml')}, + {text: 'Save as GPX', callback: () => this.saveTrackAsFile(track, geoExporters.saveGpx, '.gpx')}, + {text: 'Save as KML', callback: () => this.saveTrackAsFile(track, geoExporters.saveKml, '.kml')}, {text: 'Copy link for track', callback: this.copyTrackLinkToClipboard.bind(this, track)}, {text: 'Extra', separator: true}, {