Board index » Questions, help, problems... all about Wikiloc »  How to show a trail map on my website

Posted: 28 Oct 2007, 10:23
Posts: 140 Joined: 24 Oct 2007, 21:18
Hi there

Is there a way to display my own GPS tracks on a small map in my website? Like an embedded youtube video.

Cheers
Forest

Trails from Forest


Last edited by Forest on 28 Oct 2007, 10:23, edited 1 time in total.
Posted: 28 Oct 2007, 10:48
Posts: 472 Joined: 24 Oct 2007, 21:18
Sure Forest, you can easily do that, the steps are:
- Open a trail page (e.g: Elden Loop in Arizona http://www.wikiloc.com/wikiloc/view.do?id=12125 )
- From the right hand side you'll see the option: Embed in your website , click on it and grab the HTML code to paste in your web site.

Code:
<iframe frameBorder="0" src="http://www.wikiloc.com/wikiloc/spatialArtifacts.do?event=view&id=12125" width="500px" height="400px"></iframe>


Additionally if you want to show the elevation profile just below the map (like in wikiloc's home page) add the parameter: measures=on
Code:
<iframe frameBorder="0" src="http://www.wikiloc.com/wikiloc/spatialArtifacts.do?event=view&id=12125&measures=on" width="500px" height="400px"></iframe>

To force metric units when the language is in english (urls starting with en.wikiloc.com) add the parameter metricunits=on

Additional parameters to show/hide additional information are: title=on&near=on&images=on

Additionally you can choose your prefered default map type to show: "Normal Map" (streets, roads), "Satellite", "Hybrid" (a combination of Normal and Satellite) or the new "Terrain" layer by adding the maptype parameter:
To show the Normal Map maptype=M
To show the Satellite use maptype=S
For Hybrid Map use maptype=H
For Terrain (physical) Map use maptype=T


Websites that shows embedded trail maps: http://www.rutasmtbmurcia.com/rutas-wikiloc , http://ldiegoes.blogspot.com or http://wikiloc.blogspot.com/2007/12/new-map-layer-available.html

Hope it helps!
Cheers

Trails from Jordi


Last edited by Jordi on 05 Feb 2008, 04:08, edited 8 times in total.
Posted: 12 Nov 2007, 16:37
Posts: 4 Joined: 12 Nov 2007, 16:05
How can I default the View of the embedded map to Map, instead of the currently defaulted Sattelite View ?

thank you

Trails from erasmo
Posted: 13 Nov 2007, 02:26
Posts: 472 Joined: 24 Oct 2007, 21:18
Hi Erasmo

Thanks much for your message. Frankly I forgot to specify how to change the map type to your prefered view in the previous message (by using the maptype param) :)

I've updated the post to reflect it.

Best,
Jordi


Trails from Jordi
Posted: 13 Nov 2007, 02:37
Posts: 4 Joined: 12 Nov 2007, 16:05
thank you very much for your info :-)

another question:

can i choose the color of the track ?

it happens that by putting it in orange, it gets a little bit lost with the rest of the map (the roads are also orange or yellow)

i guess that another color, for example: blue or red, could be a more contrasting color

is this possible ?

thank you

Trails from erasmo


Last edited by erasmo on 13 Nov 2007, 02:38, edited 1 time in total.
Posted: 13 Nov 2007, 02:45
Posts: 472 Joined: 24 Oct 2007, 21:18
Not at the moment, but I'm considering to add it since it has been suggested as a useful feature see: http://www.wikiloc.com/forum/posts/list/17.page


Trails from Jordi
Posted: 13 Nov 2007, 02:48
Posts: 4 Joined: 12 Nov 2007, 16:05
ok Jordi, muchas gracias por la info :-)

ya están cambiados los mapas en mi nuevo blog (donde quiero usar tus mapas embedded), usando ahora los de wikiloc :-)

saludos y mil gracias por los mapas !

Trails from erasmo


Last edited by erasmo on 13 Nov 2007, 04:48, edited 1 time in total.
Posted: 15 Nov 2007, 02:53
Posts: 112 Joined: 24 Oct 2007, 21:18
Interesantes opciones a añadir en los embebed... :-o

Trails from ldiegoes
Posted: 20 Jan 2008, 08:54
Posts: 1 Joined: 01 Jan 2008, 14:40
Pues me sumo a esta estupenda herramienta, muchísimas gracias!

http://www.rutasmtbmurcia.com/rutas-wikiloc

Trails from pepegar
Posted: 17 Feb 2008, 14:53
Posts: 3 Joined: 11 Feb 2008, 13:11
I don't seem to be able to embed iframes into wordpress blog posts. Is there an alertantive method?
Thanks for a great resource.

Trails from Geoff
All times are UTC
Page 1 of 6
55 posts
Go to page 1 , 2 , 3 , 4 , 5 , 6 Next