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

Fire "error" when a file fails to load. #83

Closed Bu-Gee closed 4 years ago

Bu-Gee commented 5 years ago

When a requested URL fails to load, there is no notification back from the GPX loader. This is just a patch so that it fires off an error that includes the HTTP GET status.