Leaflet-Extended-Div-Icon:L.ExtendedDivIcon - 为您的 div 图标添加样式和 ID

时间:2021-07-12 15:03:03
【文件属性】:
文件名称:Leaflet-Extended-Div-Icon:L.ExtendedDivIcon - 为您的 div 图标添加样式和 ID
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-12 15:03:03
JavaScript Leaflet-Extended-Div-Icon L.ExtendedDivIcon - 添加设置由L.DivIcon创建的元素的id和style的L.DivIcon 我总是觉得你只能为L.DivIcon设置类很不舒服,所以我构建了这个东西。 也许其他人需要这个。 使用示例 var marker = L . marker ( L . latLng ( lat , lng ) , { icon : L . extendedDivIcon ( { // Set classes here, as usual className : 'class-a class-b class-c' , // Set i
【文件预览】:
Leaflet-Extended-Div-Icon-master
----.gitignore(28B)
----extended.divicon.js(570B)
----README.md(950B)
----extended.divicon.min.js(340B)
----bower.json(506B)
----MIT-LICENSE(1KB)

网友评论