leaflet-legend:单张插件显示图例控件

时间:2021-04-30 23:40:11
【文件属性】:
文件名称:leaflet-legend:单张插件显示图例控件
文件大小:5KB
文件格式:ZIP
更新时间:2021-04-30 23:40:11
JavaScript 最近包装 传单的简单图例控件。 调用GetLegendGraphic网址并将其显示在传单控件中。 ##用法 首先,创建控件并将其添加到地图: var options = { position:'topright' }; var legendTitle = "My beautiful legend"; var legendControl = L.control.legend(legendTitle, options); legendControl.addTo(map); 构造GetLegendGraphic网址: var url = "http://localhost:8080/geoserver/wms"; var legendGraphicOptions = { request:'GetLegendGraphic', version: '1.0.0',
【文件预览】:
leaflet-legend-master
----leaflet-legend.css(848B)
----README.md(999B)
----example()
--------example.js(957B)
--------style.css(52B)
--------index.html(620B)
----leaflet-legend.js(4KB)
----bower.json(493B)

网友评论