Great, this is something I was hoping for. Although I couldn't find the way to show GPX traces uploaded to OSM, so I guess I would have to put them on my own web server like you did?
Regards, Igor Rejo Zenger wrote: > ++ 10/08/09 13:02 +0200 - Igor Brejc: > >> Is there a way to display an uploaded GPX on the OSM slippymap? >> Something similar to how you can highlight an OSM way, node or >> relation: http:// >> www.openstreetmap.org/?way=31904301 >> >> I took some friends on a hiking tour and I wanted to send them a simple URL >> with the indicated track, since I've already uploaded the GPX for mapping >> purposes. >> > > I have made a small script (based on the documentation on the wiki) that > allows you to quickly render a GPX file on an OSM slippy map. > > To use this, append the URL to the GPX file at: > > https://rejo.zenger.nl/topo/osm/?fn=[url-to-gpx-file] > > That's it. > > For example: > > > <https://rejo.zenger.nl/topo/osm/?fn=http://insecure.rejo.zenger.nl/gps/2009-04-18.gpx> > > If that works and you want to include it into some webpage, use: > > <iframe src="https://rejo.zenger.nl/topo/osm/?fn=[url-of-track]" > width="[width-of-embedded-image]" height="[height-of-embedded-image]" > frameborder="0"></iframe> > > You may add some variables to the URL which adjust the rendering of the > GPX track on the Openstreetmap. By adding "&sc=black&sw=10&so=0.4" you > would set the track to appear as a thick black and highly transparant, > where the default is a medium thick, red and half-transparant line. > > There is some more information at: > > <https://rejo.zenger.nl/topo/embed-osm-and-track-in-webpage.php> > > And there is some background information at: > > <https://rejo.zenger.nl/topo/howto-deploy-your-own-osm-slippy-map.php> > > > > ------------------------------------------------------------------------ > > _______________________________________________ > talk mailing list > talk@openstreetmap.org > http://lists.openstreetmap.org/listinfo/talk > -- http://igorbrejc.net _______________________________________________ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk