我有一个包含搜索属性选项卡的4个字段的传单地图。我使用自己显示的图像自定义了搜索图标,如图所示。
CSS代码:
data.map(lambda l: (year(l[1]) + month(l[1])))
JS代码:
.leaflet-control-search:nth-child(2n) .search-button {
background: url(images/road2.png) no-repeat 2px 2px #fff;
}
.leaflet-control-search:nth-child(3n) .search-button {
background: url(images/category.png) no-repeat 2px 2px #fff;
}
.leaflet-control-search:nth-child(4n) .search-button {
background: url(images/status.png) no-repeat 2px 2px #fff;
}
.leaflet-control-search:nth-child(5n) .search-button {
background: url(images/Date.png) no-repeat 2px 2px #fff;
}
现在,我想将这些搜索功能移至侧边菜单,但无法弄清楚。我从here下载了菜单样式: