mpetazzoni / leaflet-gpx

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

What's wrong with this GPX? #114

Closed oe8bck closed 3 years ago

oe8bck commented 3 years ago

Loading this GPX file (https://www.oe8bck.at/karte/GPX/206473_Nachbarschaft_Radl.gpx) triggers this error in the console:

gpx.min.js:formatted:310 Uncaught TypeError: Cannot read property 'getElementsByTagName' of null at i._parse_gpx_data (gpx.min.js:formatted:310) at i (gpx.min.js:formatted:293) at XMLHttpRequest.o.onreadystatechange (gpx.min.js:formatted:286)

What's wrong with this file?

Thanks for any answer! Chrsitof

ibrierley commented 3 years ago

You haven't got a closing gpx on the doc.

oe8bck commented 3 years ago

Thanks for the hint, in the mean-time I found it by myself. Just a lunch break and then a new look on the file and then I saw it. Changed it and now it renders nicely!