Template:Easymap
Appearance
| This template uses Lua: |
Easymap is a template for displaying tiled web maps. It functions as a wrapper around Template:Maplink with a few added conveniences. Namely, you can:
- Specify default map feature values
- Define map features through nested templates instead of numbered parameters
- Use Wikipedia page names as map features
For example, instead of Maplink markup like:
{{maplink
| type = shape
| id = Q8027704
| title = [[Wissahickon Valley Park]]
| stroke-color = #008000
| stroke-width = 1
| fill = #5CE65C
| fill-opacity = 0.1
| type2 = point
| id2 = Q114776093
| title2 = Livezey Dam
| marker2 = dam
| marker-color2 = #62AB22
| type3 = point
| id3 = Q7182641
| title3 = [[Philadelphia Canoe Club]]
| marker3 = home
| marker-color3 = #62AB22
}}
With Easymap, you can define the same map like:
{{easymap
| stroke-color = #008000
| stroke-width = 1
| fill = #5CE65C
| fill-opacity = 0.1
| marker-color = #62AB22
| {{easymap/shape
| page = Wissahickon Valley Park
}}
| {{easymap/point
| id = Q114776093
| title = Livezey Dam
| marker = dam
}}
| {{easymap/point
| page = Philadelphia Canoe Club
| marker = home
}}
}}
Usage
[edit]| This template's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. Please help add, expand, or improve it. |
TemplateData
[edit]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Easymap in articles based on its TemplateData.
TemplateData for Easymap
| This template needs TemplateData. Please add a TemplateData section, including {{TemplateData header}}, if you are able. |