commit 14ab5eb5f126c4ea335e7d65d0407d8c0e229465
parent aa0e42cea30ea96110febf8627cdd2ca0b9948a6
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Thu, 6 Feb 2025 20:04:25 +0100
remove unused code
Diffstat:
1 file changed, 0 insertions(+), 38 deletions(-)
diff --git a/src/lib/leaflet.control.track-list/track-list.js b/src/lib/leaflet.control.track-list/track-list.js
@@ -1503,44 +1503,6 @@ L.Control.TrackList = L.Control.extend({
saveAs(new Blob([zipFile], {type: 'application/download'}), zipFilename, true);
},
- exportTracks: function(minTicksIntervalMeters) {
- var that = this;
- /* eslint-disable max-nested-callbacks */
- return this.tracks()
- .filter(function(track) {
- return that.getTrackPolylines(track).length;
- }
- )
- .map(function(track) {
- var capturedTrack = track.feature.getLayers().map(function(pl) {
- return pl.getLatLngs().map(function(ll) {
- return [ll.lat, ll.lng];
- }
- );
- }
- );
- var bounds = track.feature.getBounds();
- var capturedBounds = [
- [bounds.getSouth(), bounds.getWest()],
- [bounds.getNorth(), bounds.getEast()]
- ];
- return {
- color: track.color(),
- visible: track.visible(),
- segments: capturedTrack,
- bounds: capturedBounds,
- measureTicksShown: track.measureTicksShown(),
- measureTicks: [].concat(...track.feature.getLayers().map(function(pl) {
- return pl.getTicksPositions(minTicksIntervalMeters);
- }
- )
- )
- };
- }
- );
- /* eslint-enable max-nested-callbacks */
- },
-
showElevationProfileForSegment: function(line) {
this.hideElevationProfile();
this.stopEditLine();