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

Simple example from README does not work. #156

Closed pboettch closed 3 months ago

pboettch commented 3 months ago

I copy and pasted the simple example from the README into a html-file. Removed the non existing options-variable from the GPX-constructor call. Filled the url-variable with a local (file://) gpx-URL. Opened the file in firefox and I'm getting:

image

Is this expected because more adaptations have to be made for this simple example will work?

pboettch commented 3 months ago

Forget it, I put gpx-data into the URL, but as it was a const it didn't work. It has to be a var.