KML url parameter not working

riley's Avatar

riley

02 Dec, 2018 05:32 PM

Hey Matt, I'm trying to make a program for myself that loads KML files into CalTopo. I found a few posts here that refer to the "#kml" url parameter for importing a kml file from a url.

I have a kml file here: https://sheer-whippet.glitch.me/kml.kml

But this doesn't work: https://caltopo.com/map.html#kml=https%3A%2F%2Fsheer-whippet.glitch.me%2Fkml.kml&ll=42.99847,-73.8424&z=14&b=mbt

The center and zoom parameters are where the KML route is, too. I dug into the dev tools and saw that it requests https://caltopo.com/rest/url?url=https%253A%252F%252Fsheer-whippet.glitch.me%252Fkml.kml to convert the kml data into geojson, which it does successfully. It just doesn't plot the route onto the map.

Thank you!

  1. Support Staff 1 Posted by matt on 07 Dec, 2018 06:16 AM

    matt's Avatar

    Sorry about that, this should be working again (the route now loads, but the coordinates in your link drive the map center and don't correspond with the route's location).

  2. 2 Posted by Riley Walz on 07 Dec, 2018 11:58 AM

    Riley Walz's Avatar

    Thank you! Works great now.

  3. kobe.pole closed this discussion on 07 Dec, 2018 07:44 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