Help:Geo

Pages in the wiki have the option of being assigned a geographic position. This is possible through the Semantic MediaWiki extension.

[edit] Adding Coordinates to Pages

Coordinates are set via the coordinates attribute. What you type:

[[coordinates:=the coordinates]]

For example,

[[coordinates:=41.5048138889° N, 81.6082166667° W]]

The format needs to have the ° character. For your convenience, this character can be inserted by clicking on it in the Insert: line just below the buttons in the edit box of a page.

[edit] Finding Geographical Coordinates

If you are searching for coordinates around campus, using the interactive map at CaseWiki:Map is the easiest solution. Double click anywhere in the map to display the coordinates for that point. MediaWiki has a preference for editing a document by double clicking. Make sure this setting is disabled. It can be found at Special:Preferences in the Misc Settings tab. When copying coordinates, it should not be necessary to use any digits after the fifth decimal place when geotagging entries.

[edit] Embedding Maps

It is possible to embed a custom Google map into a specific page. This is done via the <gmap> tag.

To include a Google map on a page, simply include the <gmap></gmap> tags while editing.

Optionally, you can pass parameters to the display of the map through the format: <gmap>param=value|foo=bar</gmap>

Valid Parameters:

  • lat -- the latitude of the center of the map (41.5061 is the default)
  • lon -- the longitude of the center of the map (-81.6089 is the default)
  • height -- the physical height of the map on the screen in pixels (the default is 600)
  • width -- the physical width of the map on the screen in pixels (the default is 740)
  • zoom -- the zoom level for the map (1 is the default; 0 is the closest zoom)
  • rss -- a geotagged RSS feed to plot (can be specified more than once)
  • type -- the map type to display
    • set to street to display a street map instead of a satellite map
    • set to hybrid to display a street map overlayed with satellite imagery
  • controls -- set to yes to enable map type controls

An example:

<gmap>lat=41.50434|lon=-81.60875|zoom=15|width=300|height=250</gmap>

Will display a map centered at 41.50434 N 81.60875 W at the highest zoom level with a width of 300px and a height of 250px.

This will be displayed as:

See CaseWiki:Google Map Extension for more information.

This page has been accessed 4,935 times.
This page was last modified 00:45, October 26, 2006 by Gregory Szorc.
About | Disclaimers