Caltopo API open local gpx file

Mackenzie's Avatar

Mackenzie

16 Jan, 2019 11:20 PM

Hi Caltopo team,
I am wondering if it is possible for me open a local gpx file in Caltopo by passing it via the url.
Ideally, I have a local gpx file and I urlencode the path to said file, perhaps like this: map.html#gpx=[urlencoded path to my file].
I found the option using kml, but was only able to successfully display the map with remote files, not local files on my machine (I am guessing the kml data is being pulled by your server, not client side?). Another alternate solution would be a fix for the kml method using local files, as I can convert from gpx to kml fairly easily.

Anyways, thank you in advance, any tips on this would be very helpful!

All the best,
Mackenzie

  1. Support Staff 1 Posted by matt on 19 Jan, 2019 09:52 PM

    matt's Avatar

    If I understand correctly, that's not feasible. You're correct that the server accesses the KML file, but even if it were loaded by the browser and then passed to the server, there are security restrictions that prevent a remotely loaded page (like CalTopo) from accessing file stored on your computer. If a web page could load your locally saved GPS file, it could also read all kinds of other files on your computer.

  2. matt closed this discussion on 19 Jan, 2019 09:52 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac