Extension:Maps/Google

Google Maps examples
Since Maps is not enabled on this wiki, no examples can be shown here. You can find a list of Google Maps examples here.

Controls
Parameter:

Possible values:,  ,  ,  ,  ,  ,  ,  ,  ,

This parameter determines the controls that will be placed on your Google Maps map, and determine how the user will be able to interact with the map. Values are separated with comma's. You can set the default in the settings file.

Example: controls=small, nav-label, overview-map, scale

Note that some combinations are not possible, for example  and.

Types


Parameter:

Possible values:,  ,  ,  ,  ,  ,  ,  ,  ,  ,

The map types the user will be able to choose in the map type selector control. Values are separated with comma's. You can set the default.

Example: types=hybrid,satellite,earth,physical

Note that you can also use the associated Google Maps API map type names for the allowed parameters. You can find them here.

This example is synonymous to the above one. types=G_HYBRID_MAP,G_SATELLITE_MAP,G_SATELLITE_3D_MAP,G_PHYSICAL_MAP

Type


Parameter:

Possible values: See types.

The map type, in other words: the one the map will show when the page is loaded. You can set the default.

Example: type=hybrid

Overlays
Parameter:

Possible values:,  ,  ,

A comma separated list of values indicating which overlays a user should be able to choose from. If you do not provide any values, the defaults will be used. To not show any overlays, simply do not pas along the 'overlay' control for the 'controls=' parameter. Each overlay can be shown at page load by adding a '-1' to the end of it's value. You can set the default.

Example: overlays=wikipedia-1,webcams,photos-1

Autozoom
Parameter:

Possible values: ,

This value determines whether you will be able to zoom in and out using your the scroll wheel of your mouse. You can set the default.

Example: autozoom=off

Google Earth
Parameter:

Possible values:,   (default)

Notice: this parameter has become obsolete in version 0.3. Although it's still accepted for backwards compatibility, it's usage is highly discouraged. Add the 'earth' type to the map types instead.

You can add this parameter to both display_map and display_address. It will add a fourth map type, named 'earth', to the map. A user who selects this map type will see a Google Earth map; provided the Google Earth plug-in is installed on their computer. If it's not installed, they'll be shown a message with a download link, if they're using a Windows or Mac OS operating system (Google Earth is not yet supported for Linux and other operating systems). Note that enabling this map type will also change the default map type from 'normal' to 'earth'. You can of course override that by setting the  parameter, for example to. You can also configure the default on/off setting (the one that will be used when no value is provided) in the settings file, if you want Google Earth to be enabled by default on every Google Maps map.

Example: earth=on

Google Maps API Key
Your Google Maps API key. Required for displaying Google Maps, and using the Google Geocoder services. Haven't got an API key yet? Get it here.

Default map zoom
The default zoom of a Google Maps map. This value will only be used when the user does not provide one.

Default:

Default map types
The default Google Maps map types. This are the map types the user will be able to choose in the map type selector control. This value will only be used when the user does not provide one.

Default:

Default map type
The default map type, in other words: the one the map will show when the page is loaded. This value will only be used when the user does not provide one.

Default:

Default map controls
The default controls for Google Maps. This value will only be used when the user does not provide one.

Default:

Default overlays
The default overlays for Google Maps, and whether they should be shown at page-load. This value will only be used when the user does not provide one.

Default:

Default autozoom
The default value for enabling or disabling the autozoom of a map. This value will only be used when the user does not provide one.

Default:

Map name prefix
The Google Maps map name prefix. It can not be identical to the one of another mapping service. Unless you know what you are doing, it's discouraged to modify this value.

Default:

Google Maps usage examples
If you are using Maps and have a great example of Google Maps functionality, feel free to link to it below.


 * Semantic MediaWiki community wiki Very nice example of a compound query result.
 * Civic Studio A Google Maps map showing the results of an #ask query.
 * BN's demo wiki