mpetazzoni / leaflet-gpx

A GPX track plugin for Leaflet.js
http://mpetazzoni.github.io/leaflet-gpx
BSD 2-Clause "Simplified" License
529 stars 114 forks source link

handling of GPX files with multiple tracks #123

Open chrisrummel opened 2 years ago

chrisrummel commented 2 years ago

Although multiple tracks within one GPX file is supported and all tracks are marked with their own start- and end-markers, only the name of the first track is displayed as the title and only one checkbox for de-selecting all included tracks individually is shown in the box in the upper right corner.

While it is necessary to reduce all included track-names to one name for the title and to create a sum of all included distances etc., it would be nice to at least list the included tracks individually in the box in the upper right corner, and then maybe update the data at the bottom.

Edit: I am no programmer, but as far as I can read and understand the source, I found this:

If I knew how to do it, I would try to do this:

I am sorry if this is complete fantasy nonsense, but not being a programmer this is as good as I can describe it.

mpetazzoni commented 1 year ago

Added support for styling routes/tracks differently. I'll work on styling markers separately, and route/track visibility next.