ထႅမ်းပလဵတ်ႉ:Mapgroup/doc
ဢၼ်ၼႆႉ မၼ်းပဵၼ် ၽိုၼ်လိၵ်ႈၽႄ တွၼ်ႈတႃႇ ထႅမ်းပလဵတ်ႉ:Mapgroup။ မၼ်းၶဝ်ႈပႃး လွၼ်ႉၶၢဝ်ႇ လွင်ႈၸႂ်ႉတိုဝ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ လမ်းၼႂ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၸႂ်ႈ ပွတ်းတွၼ်ႈ ၶွင်ငဝ်ႈတိုၼ်း ထႅမ်းပလဵတ်ႉ ၼႃႈလိၵ်ႈ။ |
ၽိုၼ်လိၵ်ႈ
[မႄးထတ်း]This template works with {{Mapgroup-item}} to build 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 works best when the areas being displayed have Wikidata IDs that have been associated to OpenStreetMap records - see the documentation for ထႅမ်းပလဵၵ်ႉ:Mapshape for more details on using Wikidata IDs with dynamic maps.
To automatically generate a mapgroup for destinations within 20 km of location http://mountaininterval.org/wikivoyage/nearby-destinations.html can be used.
ပႃႇရႃႇမီႇတႃႇ
[မႄးထတ်း]- target: (Optional) The Wikidata ID indicating the target object for the map. The item in question will appear as a {{Mapshape}} on the map.
- name: (Optional) The name to display in the map caption.
- width: (Optional) The width in pixels for the map. Defaults to 400.
- height: (Optional) The height in pixels for the map. Defaults to 400.
- fill: (Optional) If a target Wikidata ID is used then this value specifies the fill color to use for the mapshape. Color must a valid web color, for example
#ff0000
for red. If no value is specified then a default is used. - lat: (Optional) The latitude for the center point of the map. Example: 37.18. If no value is specified then the mapping tools will attempt to automatically center the map so that all points of interest are spaced out evenly.
- long: (Optional) The longitude for the center point of the map. Example: -120.67. If no value is specified then the mapping tools will attempt to automatically center the map so that all points of interest are spaced out evenly.
- 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). If no value is specified then the mapping tools will automatically select a zoom that fits all items included on the map within the visible display.
- group: (Optional) The internal group name for the map. This parameter is generally only needed if more than one {{Mapgroup}} is being used in an article. See the example below and the documentation for မေႃႇၵျူး:Map for more details on how the group parameter can be used.
Example
[မႄးထတ်း]Example demonstrating a basic {{Mapgroup}}, including two items:
{{Mapgroup | name=[[Mapgroup/Merced County|Merced County]]'s neighboring counties | height=300 | target=Q109690 }} * {{Mapgroup-item|name=[[Mapgroup/Stanislaus County|Stanislaus County]]|wikidata=Q108503}} * {{Mapgroup-item|name=[[Mapgroup/Fresno County|Fresno County]]|wikidata=Q271915}}
...which produces:
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:
{{Mapgroup | name=[[Mapgroup/Kern County|Kern County]]'s neighboring counties | height=300 | group=kern | target=Q108047 }} * {{Mapgroup-item|group=kern|name=[[Mapgroup/Inyo County|Inyo County]]|wikidata=Q109670}} * {{Mapgroup-item|group=kern|name=[[Mapgroup/San Bernardino County|San Bernardino County]]|wikidata=Q108053}}
...which produces:
See also
[မႄးထတ်း]- {{Mapgroup-item}} - Template used to specify items that will be displayed on the map group.
- {{Mapframe}} - Template used to add a dynamic map to an article.
- {{Mapmask}} - Used to create a mask using manually entered latitude/longitude pairs; useful for drawing city or region borders that aren't available from OpenStreetMap.
- {{Mapshape}} - Used to create a mask, shape or line using data from the OpenStreetMap database; useful for city or region borders, or for showing routes.