Map: Difference between revisions
From Dragon Eye Atlas
changing projection to Natural Earth (https://en.wikipedia.org/wiki/Natural_Earth_projection) |
No edit summary |
||
Line 17: | Line 17: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
<script src='https://api | <script src='https://api.mapbox.com/mapbox-gl-js/v2.6.0-beta.1/mapbox-gl.js'></script> | ||
<link href='https://api | <link href='https://api.mapbox.com/mapbox-gl-js/v2.6.0-beta.1/mapbox-gl.css' rel='stylesheet' /> | ||
<style> | <style> | ||
a.mapbox-ctrl-logo { display: none !important; } | a.mapbox-ctrl-logo { display: none !important; } |
Revision as of 13:07, 3 November 2021
Map Widget
New and unified 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
- overlay - activate color overlay, most be one of "realm", "culture, "religion" or "province"
- zone - activate zone overlay
- info - set to show the information overlay/popup on click
Examples
- {{#widget:Map|bounds=[[0, 25], [8, 31]]}}
- {{#Widget:Map|lat=31|lon=-15.5|zoom=3}}