improved graphical user interface and refractored all var to const or let #6
@@ -324,8 +324,7 @@ function loadContributions() {
|
|||||||
onEachFeature: bindFeaturePopup
|
onEachFeature: bindFeaturePopup
|
||||||
}).addTo(map);
|
}).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
|
// Update Sidebar List and Statistics
|
||||||
updateContributionsList();
|
updateContributionsList();
|
||||||
updateStatistics();
|
updateStatistics();
|
||||||
@@ -719,7 +718,6 @@ function buildCategoryFilter() {
|
|||||||
html += '' +
|
html += '' +
|
||||||
'<label style="display:flex;align-items:center;gap:8px;margin-bottom:6px;cursor:pointer;">' +
|
'<label style="display:flex;align-items:center;gap:8px;margin-bottom:6px;cursor:pointer;">' +
|
||||||
'<input type="checkbox" value="' + key + '" ' + checked + ' onchange="toggleCategoryFilter(this)">' +
|
'<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>' +
|
'<span>' + categoryIcon(cat) + ' ' + cat.label + '</span>' +
|
||||||
'</label>';
|
'</label>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user