removed circles in sidebar legend, added contribution icon in layer control

This commit is contained in:
2026-04-21 16:35:35 +02:00
parent 2b3fcb6ebf
commit f810ed520c

View File

@@ -324,8 +324,7 @@ function loadContributions() {
onEachFeature: bindFeaturePopup
}).addTo(map);
layerControl.addOverlay(contributionsLayer, 'Beiträge');
layerControl.addOverlay(contributionsLayer, '<i class="fa-solid fa-map-pin" style="color:#546E7A;"></i> Beiträge');
// Update Sidebar List and Statistics
updateContributionsList();
updateStatistics();
@@ -719,7 +718,6 @@ function buildCategoryFilter() {
html += '' +
'<label style="display:flex;align-items:center;gap:8px;margin-bottom:6px;cursor:pointer;">' +
'<input type="checkbox" value="' + key + '" ' + checked + ' onchange="toggleCategoryFilter(this)">' +
'<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:' + cat.color + ';"></span>' +
'<span>' + categoryIcon(cat) + ' ' + cat.label + '</span>' +
'</label>';
}