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.

Control
Parameter:  (note: It's controls, not control!)

Possible values:,   (default), and more

This parameter determines the control on the left of the map that enables you to zoom and pan. There are 2 short cut values, as listed above, that represent the most common controls. You can however also use the Google Maps API name for the control (click for a list of all available). Note that entering a wrong value for this property is likely to result in the map not being displayed correctly. You can also configure the default control (the one that will be used when no value is provided) in the settings file.

Example: controls=GLargeMapControl

Type
Parameter:

Possible values:  (default), ,  ,

This value determines the map type that will be shown when the map is loaded. The default value is.

Example: type=hybrid

Autozoom
Parameter:

Possible values:  (default),

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)

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:

Google Map control
The default control for Google Maps. 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 is shared with Yahoo! Maps. This value will only be used when the user does not provide one.

Default:

Default Google Earth
The default value for enabling or disabling the earth map type for Google Maps. This value will only be used when the user does not provide one.

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.