Wikicompany:Google map extension

From Wikicompany

Jump to: navigation, search

Wikicompany makes use of the Google Map MediaWiki extension (docs).

See also: Wikicompany:Geo extension

Contents

Using the extension

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 (options: 0 .. 20) where 0 is the closest zoom. (default is 1)
  • rss -- a geotagged RSS feed to plot (can be specified more than once)
  • type -- the map type to display (options: street, satellite, hybrid) (default: 'street')
  • controls -- set to yes to enable map type controls
  • wrap -- put the gmap into its own HTML table and HTML div element. (default is 'yes')
  • marker -- Show a marker for one geo-object (options: yes, no) (default: 'yes')

Examples

<gmap>lat=41.50434|lon=-81.60875|zoom=4|width=400|height=350</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.

Google Map resources

Official

Tools

Third-party uses

Documentation

Map data providers

Mediawiki extensions

Google map extension properties

RDF feed
Sector Mediawiki extensions  +
Personal tools