master
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥 中
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
贡献代码
同步代码
README
MIT
# Leaflet.Legend Leaflet.Legend 是一个 Leaflet 插件, 用于显示图例符号和切换相应的叠加层的显示. 在线 [demo](https://ptma.gitee.io/leaflet.legend/examples/legend.html). ## 用法示例 ```javascript var map = L.map("map", { center: [29, 120], }); L.control.Legend({ position: "bottomleft", legends: [{ label: "Marker1", type: "image", url: "marker/marker-red.png", }] }).addTo(map); ``` ## 选项 | 选项 | 类型 | 默认值 | 描述 | |--------|------|---------|-------------| | position | String | 'topleft' | 图例控件位置。 | | title | String | 'Legend' | 图例控件的标题。 | | opacity | Number | 1.0 | 图例面板的透明度。 | | legends | LegendSymbol[] | [] | [LegendSymbol](#legendsymbol) 图例符号数组。 | | symbolWidth | Number | 24 | 图例符号的宽度,以像素为单位。 | | symbolHeight | Number | 24 | 图例符号的高度,以像素为单位。 | | column | Number | 1 | 图例符号排列的列数。 | | collapsed | Boolean | false | 图例面板是否默认展开。 | ### LegendSymbol | 选项 | 类型 | 默认值 | 描述 | |--------|------|---------|-------------| | label | String | undefined | 图例符号的文本标签。 | | type | String | undefined | 图例符号的类型. 可以是 'image','circle','rectangle','polygon' 或 'polyline'。 | | url | String | undefined | 图里图片的 URL,仅用于 type 为 'image' 时。 | | radius | Number | undefined | 圆形图例的半径,以像素为单位,仅用于 type 为 'circle' 时。 | | sides | Number | undefined | 正多边形的边数,仅用于 type 为 'polygon' 时。 | | layers | Layer|Layer[]| undefined | 图例符号关联的叠加层. 关联叠加层后可通过点击图例来切换相应叠加层的可见性。 | | inactive | Boolean | undefined | 图例符号是否为非激活的, 非激活的图例会减淡显示。 | | stroke | Boolean | true | 是否绘制边框。 | | color | String | '#3388ff' | 边框颜色。 | | weight | Number | 3 | 边框宽度。 | | opacity | Number | 1.0 | 边框透明度。 | | lineCap | String | 'round' | 指定如何绘制每一条线段末端的属性。有 3 个可能的值,分别是:'butt','round' 或 ’square‘。 | | lineJoin | String | 'round' | 用来设置2个长度不为0的相连部分(线段,圆弧,曲线)如何连接在一起的属性(长度为0的变形部分,其指定的末端和控制点在同一位置,会被忽略)。 | | dashArray | String | null | 控制用来描边的点划线的图案范式。 | | dashOffset | String | null | dash模式到路径开始的距离。 | | fill | Boolean | depends | 是否用颜色填充。 | | fillColor | String | * | 填充色,默认与边框颜色相同 | | fillOpacity | Number | 0.2 | 填充透明度。 | | fillRule | String | 'evenodd' | 填充规则。 |
MIT License Copyright (c) 2020 ptma@163.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
取消
提交
Leaflet 图例展示控件, 并可通过图例切换图层的额开和关 展开 收起
暂无标签
README
取消
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
相关知识
ptma/Leaflet.Legend.git: Leaflet 图例展示控件, 并可通过图例切换图层的额开和关
leaflet常用插件地址整理
排烟通风图例大全图片
修改图表图例条目
海棠花平面图例
CAD丁香花填充图例怎么表示
解锁Matplotlib的交互式图表功能
招财树繁殖方法图例
最全蓝莓缺素症状图例以及对应施肥要点
花卉图例教学栽培技术资源
网址: ptma/Leaflet.Legend.git: Leaflet 图例展示控件, 并可通过图例切换图层的额开和关 https://m.huajiangbk.com/newsview2500549.html
| 上一篇: 草图大师插件常用插件 |
下一篇: 文章配图 |