Actions

Widget

Difference between revisions of "Map"

From Dragon Eye Atlas

Line 9: Line 9:


=== Examples ===
=== Examples ===
* <nowiki>{{#widget:Mapbox|bounds=[[0, 25], [8, 31]]}}</nowiki>
* <nowiki>{{#widget:Map|bounds=[[0, 25], [8, 31]]}}</nowiki>
* <nowiki>{{#Widget:Mapbox|lat=31|lon=-15.5|zoom=3}}</nowiki>
* <nowiki>{{#Widget:Map|lat=31|lon=-15.5|zoom=3}}</nowiki>
</noinclude>
</noinclude>
<includeonly>
<includeonly>

Revision as of 08:33, 12 October 2019

Map Widget

Parameters

  • lon, lat, zoom - longitude, latitude and zoom for the map (defaults: 1, 30, 4)
  • width, height - dimensions of the map itself on the page, in px or % (defaults: 50%, 400px)
  • bounds - optional bounds array, replaces lon,lat,zoom
  • show, filter = show must be one of "realm", "culture", "religion" or "province" and filter must be the (short) name of the entity to highlight

Examples

  • {{#widget:Map|bounds=[[0, 25], [8, 31]]}}
  • {{#Widget:Map|lat=31|lon=-15.5|zoom=3}}