Extension:Maps/Displaying maps

From semantic-mediawiki.org
Jump to: navigation, search
MapsExtension:Maps/Displaying maps


{{#display_map:<your location>|height=<some height>|service=<your service>}}


see also → Maps examples.
{{#display_map:44.521, 9.0568|width=400|height=300|service=openlayers|zoom=5}}
Loading map...
{{#display_map:44.521, 9.0568|width=400|height=300|service=googlemaps|zoom=5|type=hybrid}}
Loading map...
{{#display_map:New-York City|service=openlayers}}
Loading map...


Parameter Aliases Default Usage
Default, Coordinates or Address - required The location the map will initially be centred on. Depending on which name you provide for this parameter, the values will be treated differently. This behaviour will be removed in 0.7.
  • Default (nameless) parameter: Provide either an address or set of coordinates, and Maps will figure out what to do with it.
  • Coordinates: Only valid coordinates will be accepted, addresses will not be geocoded.
  • Address: The location will be treated as an address and geocoded, even when it's a set of coordinates.
service - configurable Allows to set the mapping service that will be used to generate the map. Allowed values are: googlemaps, openlayers, osm, and yahoomaps.
geoservice - configurable Allows to set the geocoding service used to turn the location into coordinates when it's an address.
width - configurable Allows to set the width of the map, in pixels.
height - configurable Allows to set the height of the map, in pixels.
zoom - configurable Allows to set the zoom level of the map. When not provided and multiple markers are present on the map, the best fitting zoom will be taken, not the configurable default.

See also