imported>mutante m (Redirecting to Maps) |
imported>mutante mNo edit summary |
||
Line 1:
You can now insert [http://maps.google.com Google Maps] into Wiki pages.
This is possible due to the [http://meta.wikimedia.org/wiki/User:Emiller/GoogleMapsExtension GoogleMapsExtension] of Emiller.
=== Usage ===
Tag: <pre><googlemap> ... </googlemap></pre>
==== Options ====
* width - specifies the width of the map in pixels
* height - specifies the height of the map in pixels
* lat - [[Wikipedia:Latitude|latitude]], specifies the location of the center of the map (north or south of the Equator)
* lon - [[Wikipedia:Longitude|longitude]], specifies the location of the center of the map (east or west of the [[Wikipedia:Prime_Meridian|Prime Meridian]])
* zoom - specifies how far you are zoomed in or out (0=closest, higher numbers = further away, notice that google doesnt provide data closer to 4 or something in many areas, try in preview)
* type - (legal values are "map", "hybrid", and "satellite"; defaults to hybrid)
* controls ("small" creates +/- zoom buttons, "medium" has zoom buttons and pan buttons, and "large" has pan buttons with a sliding scale for zoom)
==== Example ====
Luxor Hotel in Las Vegas
<pre>
<googlemap width="400" height="400" lat="36.095632" lon="-115.175278" zoom="0" controls="small" type="hybrid">
</googlemap></pre>
==== Result ====
<googlemap width="400" height="400" lat="36.095632" lon="-115.175278" zoom="0" controls="small" type="hybrid">
</googlemap>
=== Adding Landmarks ===
Now if you want to add landmarks you can do so like this:
==== Example ====
<pre>
<googlemap width="400" height="400" lat="22.566667" lon="77.2" zoom="13" controls="small" type="hybrid">
28.566667,77.2, Delhi
18.96,72.82, Mumbai (Bombay)
13.09,80.27, Chennai (Madras)
22.82,88.2, Kolkata (Calcutta)
</googlemap>
</pre>
* notice: you can also use wiki syntax, like bracket links inside the landmark description
==== Result ====
see on [[India]], it appears that i cant put this here because multiple maps on the same page dont work
=== Example pages ===
Pages this is being used on include: [[India]],[[Cologne]],[[Nordhorn]],[[Sealand]],[[WikiWiki_Hawaiian_BBQ_Berkeley]],[[Iraq]],..
=== Finding Location Data ===
If you want to insert a map and can not find the location data in the right format, for a city go like this: go to the Wikipedia article of that place, and click on the location in the box on the right, you will be directed to kvaleberg.com where you find another direct link to GoogleMaps, there you can copy the lat and lon data right out of the URL in your browser bar.
also see http://gnswww.nga.mil/geonames/Gazetteer/Search/Search.jsp
[[Category:Mediawiki]]
[[Category:Google]]
|
Revision as of 10:07, 22 April 2007
You can now insert Google Maps into Wiki pages.
This is possible due to the GoogleMapsExtension of Emiller.
Usage
Tag:
<googlemap> ... </googlemap>
Options
- width - specifies the width of the map in pixels
- height - specifies the height of the map in pixels
- lat - latitude, specifies the location of the center of the map (north or south of the Equator)
- lon - longitude, specifies the location of the center of the map (east or west of the Prime Meridian)
- zoom - specifies how far you are zoomed in or out (0=closest, higher numbers = further away, notice that google doesnt provide data closer to 4 or something in many areas, try in preview)
- type - (legal values are "map", "hybrid", and "satellite"; defaults to hybrid)
- controls ("small" creates +/- zoom buttons, "medium" has zoom buttons and pan buttons, and "large" has pan buttons with a sliding scale for zoom)
Example
Luxor Hotel in Las Vegas
<googlemap width="400" height="400" lat="36.095632" lon="-115.175278" zoom="0" controls="small" type="hybrid"> </googlemap>
Result
<googlemap width="400" height="400" lat="36.095632" lon="-115.175278" zoom="0" controls="small" type="hybrid"> </googlemap>
Adding Landmarks
Now if you want to add landmarks you can do so like this:
Example
<googlemap width="400" height="400" lat="22.566667" lon="77.2" zoom="13" controls="small" type="hybrid"> 28.566667,77.2, Delhi 18.96,72.82, Mumbai (Bombay) 13.09,80.27, Chennai (Madras) 22.82,88.2, Kolkata (Calcutta) </googlemap>
- notice: you can also use wiki syntax, like bracket links inside the landmark description
Result
see on India, it appears that i cant put this here because multiple maps on the same page dont work
Example pages
Pages this is being used on include: India,Cologne,Nordhorn,Sealand,WikiWiki_Hawaiian_BBQ_Berkeley,Iraq,..
Finding Location Data
If you want to insert a map and can not find the location data in the right format, for a city go like this: go to the Wikipedia article of that place, and click on the location in the box on the right, you will be directed to kvaleberg.com where you find another direct link to GoogleMaps, there you can copy the lat and lon data right out of the URL in your browser bar.
also see http://gnswww.nga.mil/geonames/Gazetteer/Search/Search.jsp