Template:Mapgroup

This documentation is transcluded from Template:Mapgroup/doc. (edit | history)Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.

Contents

This template builds a map that shows a group of mapshapes on a single map. It is particularly useful for things like maps of neighboring cities or regions. This template requires that the areas being displayed have Wikidata IDs that have been associated to OpenStreetMap records - see the documentation for Template:Mapshape for more details on using Wikidata IDs with dynamic maps.

lat: (Required) The latitude for the center point of the map. Example: 37.18.

long: (Required) The longitude for the center point of the map. Example: -120.67.

zoom: (Optional) The zoom level for the map. Must be a value from 0 to 18, or "auto" (0=Earth, 18=city block, auto=show all markers).

name: (Optional) The name to display in the map caption.

group: (Optional) The internal group name for the map. This parameter is generally only needed if this template is used more than once on a page, or to synchronize with any markers for the map (see examples below).

width: (Optional) The width in pixels for the map. Defaults to 400.

height: (Optional) The height in pixels for the map. Defaults to 400.

highlight-wikidata: (Optional) One or more wikidata IDs (separated by commas) indicating mapshapes to display with a fill color.

group-wikidata: (Required) One or more wikidata IDs (separated by commas) indicating mapshapes to display without a fill color.

Example demonstrating how to include a second {{mapgroup}} template in an article. For this use case, the second invocation must specify a unique "group" value so that the map extension can properly determine what map each shape and marker belongs to: