Infomap: Difference between revisions
From Dragon Eye Atlas
Created page with "<noinclude> == Mapbox-GL-JS Information Map Widget == === Parameters === * lon, lat, zoom - longitude, latitude and zoom for the map (defaults: 1, 30, 4) * width, height - di..." |
No edit summary |
||
Line 65: | Line 65: | ||
}); | }); | ||
map.on('mouseleave', 'biomes function() { | map.on('mouseleave', 'biomes', function() { | ||
map.getCanvas().style.cursor = ''; | map.getCanvas().style.cursor = ''; | ||
popup.remove(); | popup.remove(); |
Revision as of 16:59, 22 September 2019
Mapbox-GL-JS Information 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: 100%, 600px)
Examples
- {{#widget:Mapbox|bounds=[[0, 25], [8, 31]]}}
- {{#Widget:Mapbox|lat=31|lon=-15.5|zoom=3}}