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

Correction when setting the value this._info.duration.start, if there is more than one <trkseg>-segment. #63

Closed astridx closed 6 years ago

astridx commented 6 years ago

If there is more than one <trkseg>-segment the value for this._info.duration.start is set with the value of the last <trkseg>-segment. With my little change this value will taken form the start of the first <trkseg>-segment.