-
Leaflet.Control.FullScreen是Leaflet的fullscreen插件,可简写为leaflet.fullscreen
资源介绍
Leaflet.Control.FullScreen
什么 ?
Leaflet的简单插件,可将全屏按钮添加到地图。
灵感来自
在帮助下使用本机javascript全屏API
根据MIT许可发布:
如何 ?
在页面中包含Control.FullScreen.js和Control.FullScreen.css:
< link rel =" stylesheet " href =" Control.FullScreen.css " />
< script src =" Control.FullScreen.js " > </ script >
将全屏控件添加到地图:
var map = new L . Map ( 'map' , {
fullscreenControl : true ,
fullscreenControlOptions : {
position