Cannot load GPX file
-
Hi,
I tried to load my gpx track, but it doesn’t work. The sample gpx track from the shortcode documentation works though.[leaflet-map fitbounds] [leaflet-gpx src="wp-content/uploads/2021/09/track.gpx" color=black]
According to DevTools, the file is retrieved by leaflet-ajax-geojson.min.js?ver=3.0.2 but there’s an uncaught error in the console.
Uncaught TypeError: Cannot read property 'getElementsByTagName' of null at get (togeojson.js?ver=3.0.2:15) at Object.gpx (togeojson.js?ver=3.0.2:302) at XMLHttpRequest.request.t.onreadystatechange (leaflet-ajax-geojson.min.js?ver=3.0.2:1)
I’m not sure what is the problem here. The file works perfectly fine in other apps.
- The topic ‘Cannot load GPX file’ is closed to new replies.