As I want to use leaflet locally (not on a server), I need to embed the gpx file in the html code (if not I get an error "Not allowed to load local resource").
so I put the gpx source in :
var gpx = '...'; // URL to your GPX file or the GPX itself
but I get an "SyntaxError: Unexpected EOF" when I load the html page.
Hello,
As I want to use leaflet locally (not on a server), I need to embed the gpx file in the html code (if not I get an error "Not allowed to load local resource").
so I put the gpx source in :
var gpx = '...'; // URL to your GPX file or the GPX itself
but I get an "SyntaxError: Unexpected EOF" when I load the html page.
Thanks
File example : map.zip