• I have a GPX file that is not displaying.

    Here is what I am doing:

    [leaflet-map]

    [leaflet-gpx src=my-site/200802-RomanRd.gpx”]

    You can download the file from:
    https://www.dropbox.com/s/vzm70dhx99edmsz/200802-RomanRd.gpx

    If I use the wp-gpx-maps wordpress plugin, then the map is displayed correctly – it just appears to be a problem with leaflet-map. (I am in the process of converting my site from wp-gpx-maps to leaflet-map)

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor hupe13

    (@hupe13)

    Try [leaflet-gpx src="https://my-site/200802-RomanRd.gpx"].

    Thread Starter thefallguy

    (@thefallguy)

    That was a typo on my part, to obscure my site. I am using the full https address and it is quoted.

    It it something about the gpx file that is causing the problem, as I have many other gpx files that are rendered correctly.

    Plugin Contributor hupe13

    (@hupe13)

    Maybe you should use fitbounds:
    [leaflet-gpx src="https://my-site/200802-RomanRd.gpx" fitbounds]
    I downloaded your file to my website and it works. Loading it direct from Dropbox doesn’t work on my website because CORS.
    Look at the Developer Console of your browser, may be, there is an error.

    Thread Starter thefallguy

    (@thefallguy)

    No, that does not work either. An empty map is displayed (not where the track is), but no GPX track is displayed.

    Looking in the log, I see this error
    get — togeojson.js:15TypeError: null is not an object (evaluating ‘x.getElementsByTagName’)
    get — togeojson.js:15
    gpx — togeojson.js:302
    (anonymous function) — leaflet-ajax-geojson.js:35

    Maybe there is a bug in leaflet?

    Thread Starter thefallguy

    (@thefallguy)

    OK, Another update.

    It appears to be a browser problem. On a Mac, this map does does not display in Safari, but it DOES display in Firefox. Strangely, it displays correctly in Safari on an iPad. Go figure.

    Plugin Author bozdoz

    (@bozdoz)

    I’m on a mac, and have seen gpx work on safari, so not sure what’s going on in your case.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘GPX file fails to load’ is closed to new replies.