You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to adapt gpx.speed script in order to get this one working with your patch, but it's not working for now. I've seen that Leaflet.Elevation use a fork of gpx script that doesn't return the same type of data for _parse_trkseg() :
This will be hard to maintain compatibility between two forks of the same file... Since leaflet elevation is using a fork of gpx script, in think the "compatibility check" should be done on his side.
in layer/vector/GPX.js
parse_trkseg: function(line, xml, options, tag) {
at the end of the method i found following...
when using the elevation plugin the data from the line is accessed via
d._latlngs
which brings an error in this case... because it would work with d[0]._latlngs
first i build a workaround in Leaflet.Elevation.0.0.4-src.js
but after some thinking the correct handling would be to change the code in parse_trkseg: function(line, xml, options, tag) {
after this little change Leaflet.Elevation.0.0.4-src.js works without any further change...
The text was updated successfully, but these errors were encountered: