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

From Hitchwiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
You can now embed parts of [http://maps.hitchwiki.org/ maps.hitchwiki.org] 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://maps.hitchwiki.org/ maps.hitchwiki.org], zoom to the place you want to embed and if you want, add some markers.
+
* Go to [http://hitchwiki.org/maps/ 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.
 
* 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 (<code><nowiki><map lat='xx.xxxxxxxxxx' lng='x.xxx' zoom='xx' view='x' /></nowiki></code>) to your article.
 
* 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.
Line 9: Line 9:
 
* <code>float='right'</code> to put in on the right of the page.
 
* <code>float='right'</code> to put in on the right of the page.
 
* <code>width='200'</code> or <code>height='300'</code> to change the size.
 
* <code>width='200'</code> or <code>height='300'</code> to change the size.
* <code>view='3'</code> defines the source of map: "0" sets the standard Google Maps view, "1" the satellite view, "2" the satellite view including the map material, and "3" sets the [http://www.openstreetmap.org OpenStreetMap] material on first place.
+
* <code>view='3'</code> 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 [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]].

Latest revision as of 19: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.