privacy and imprint, reverse geocoding, news CRUD functionality, anonymous user authentification from cookies, unified CSS, photos and comments functionality for contributions #11

Merged
lukas.uptmoor merged 25 commits from dev/patrick into main 2026-04-27 15:08:45 +02:00
Showing only changes of commit 6a721fde7c - Show all commits

View File

@@ -331,10 +331,11 @@ function stylePoint(feature, latlng) {
return L.circleMarker(latlng, { return L.circleMarker(latlng, {
radius: 8, radius: 8,
color: '#ffffff', color: cat.color,
weight: 2, weight: 3,
fillColor: cat.color, fillColor: cat.color,
fillOpacity: 0.9 fillOpacity: 0.25,
opacity: 0.8
}); });
} }
@@ -755,7 +756,14 @@ function toggleCategoryFilter(checkbox) {
if (layer.feature) { if (layer.feature) {
const cat = layer.feature.properties.category; const cat = layer.feature.properties.category;
if (activeFilters.indexOf(cat) !== -1) { if (activeFilters.indexOf(cat) !== -1) {
layer.setStyle({ opacity: 0.8, fillOpacity: layer.feature.geometry.type === 'Point' ? 0.25 : 0.25 }); const catDef = CATEGORIES[cat] || CATEGORIES.other;
layer.setStyle({
color: catDef.color,
weight: 3,
opacity: 0.8,
fillColor: catDef.color,
fillOpacity: 0.25
});
if (layer.setRadius) layer.setRadius(8); if (layer.setRadius) layer.setRadius(8);
layer.options.interactive = true; layer.options.interactive = true;
} else { } else {