Difference between revisions of "Help:How to add maps to articles"

From Hitchwiki
Jump to navigation Jump to search
m
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
You can now embed parts of [[Liftershalte.info]] into articles on hitchwiki. It's quite simple:
+
You can now embed parts of [http://hitchwiki.org/maps/ hitchwiki.org/maps/] into articles on hitchwiki. It's quite simple:
 
+
* Go to [http://hitchwiki.org/maps/ hitchwiki.org/maps/], zoom to the place you want to embed and if you want, add some markers.
* Go to http://www.liftershalte.info/, zoom to the place you want to embed and if you want, add some markers.
+
* Click on ''link here'' in the box to the left.
* Click on ''link here'' in the gray bar on the top.
+
* A tag for hitchwiki will show up ("To include in hitchwiki.org:"). Just copy&paste this string (<code><nowiki><map lat='xx.xxxxxxxxxx' lng='x.xxx' zoom='xx' view='x' /></nowiki></code>) to your article.
* There is a tag for hitchwiki. Just copy&paste it to your article.
 
 
 
  
 
* '''Note that this feature works only for users with javascript enabled browsers.'''
 
* '''Note that this feature works only for users with javascript enabled browsers.'''
 
  
 
There are some more parameters, that you can add:
 
There are some more parameters, that you can add:
float='right'
+
* <code>float='right'</code> to put in on the right of the page.
To put in on the right of the page.
+
* <code>width='200'</code> or <code>height='300'</code> to change the size.
width='200'
+
* <code>view='3'</code> defines the source of map:
height='300'
+
** "0" sets the standard Google Maps view
To change the size.
+
** "1" the satellite view
 
+
** "2" the satellite view including the map material
'''Note:''' At the moment you can only add one map per article. I am going to fix that soon.
+
** "3" sets the [http://www.openstreetmap.org OpenStreetMap] material on first place.
 +
* <code>country='United Kingdom'</code> shows all the tips from the hitchwiki map of the specified country. Often, there are more tips than without adding this parameter.
  
 
If something doesn't work for you or you have questions, please contact [[User:MrTweek|MrTweek]].
 
If something doesn't work for you or you have questions, please contact [[User:MrTweek|MrTweek]].
Line 23: Line 21:
 
* [[Mönchengladbach]]
 
* [[Mönchengladbach]]
 
* [[Hannover]]
 
* [[Hannover]]
 +
* [[Denmark]]
 +
 +
== More ==
 +
For going deeper into this topic, visit ''[[How to create new articles]]'' or ''[[How to create a navigation box]]''.
  
 +
[[Category:Help]]
 
[[Category:Liftershalte.info]]
 
[[Category:Liftershalte.info]]

Latest revision as of 18:19, 25 August 2014

You can now embed parts of hitchwiki.org/maps/ into articles on hitchwiki. It's quite simple:

  • Go to hitchwiki.org/maps/, zoom to the place you want to embed and if you want, add some markers.
  • Click on link here in the box to the left.
  • A tag for hitchwiki will show up ("To include in hitchwiki.org:"). Just copy&paste this string (<map lat='xx.xxxxxxxxxx' lng='x.xxx' zoom='xx' view='x' />) to your article.
  • Note that this feature works only for users with javascript enabled browsers.

There are some more parameters, that you can add:

  • float='right' to put in on the right of the page.
  • width='200' or height='300' to change the size.
  • view='3' defines the source of map:
    • "0" sets the standard Google Maps view
    • "1" the satellite view
    • "2" the satellite view including the map material
    • "3" sets the OpenStreetMap material on first place.
  • country='United Kingdom' shows all the tips from the hitchwiki map of the specified country. Often, there are more tips than without adding this parameter.

If something doesn't work for you or you have questions, please contact MrTweek.

For some examples, see these articles:

More

For going deeper into this topic, visit How to create new articles or How to create a navigation box.