Maps/Google Maps

From Wiki of Jeroen De Dauw
Jump to: navigation, search

This page contains examples of the usage of the Maps MediaWiki extension with Google Maps.

Contents

Sandbox

You can try out creating your own maps or modifying the underneath examples at the Google Maps sandbox.

Google Maps demo's

Controls

Settings the controls of a map.

{{
#display_point:
New York City
| controls=small, nav-label, overview-map, scale
}}
Loading map...
Warning: There is an error in your syntax.

Map types

Settings the available map types.

{{
#display_point:
New York City
| types=hybrid,satellite,physical
}}
Loading map...

Google Earth

Settings the available map types, including a Google Earth one.

{{
#display_point:
New York City
| types=earth,hybrid,satellite,physical
}}
Loading map...

Non-earth map types

Google Sky map.

{{
#display_points:
service=googlemaps
|coordinates=1,2~A star; 10,10; -8,4
|height=500
|width=400
|types=sky
|controls=large,overview
}}
Loading map...
The following errors have been detected in your syntax:
* The value "sky" is not valid for parameter type. It only accepts these values: normal, roadmap, satellite, hybrid, terrain, physical and earth.
* One or more values for parameter types are invalid. It only accepts these values: normal, roadmap, satellite, hybrid, terrain, physical and earth.
* One or more values for parameter controls are invalid. It only accepts these values: pan, zoom, type, scale and streetview.

Map type

Settings the map type.

{{
#display_point:
New York City
| type=hybrid
}}
Loading map...

Settings the map type to one not in the types parameter or default types list.

{{
#display_point:
New York City
| types=hybrid,satellite,physical
| type=earth
}}
Loading map...

Overlays

Displaying a map with 3 overlays of which 2 are shown by default.

{{
#display_point:
New York City
| overlays=wikipedia-1,webcams,photos-1
}}
Loading map...
The following error has been detected in your syntax:
* overlays is not a valid parameter.

Autozoom

Map without mouse-wheel scroll.

{{
#display_point:
New York City
| autozoom=off
}}
Loading map...
The following error has been detected in your syntax:
* autozoom is not a valid parameter.

See also

Personal tools
Namespaces

Variants
Actions
Navigation
MediaWiki
Other software
Me
Toolbox