fixed point opacity bug when deactivating categories in sidebar

This commit is contained in:
2026-04-22 15:56:30 +02:00
parent f107d97b87
commit a828a3878e

View File

@@ -751,7 +751,7 @@ function toggleCategoryFilter(checkbox) {
if (layer.feature) {
const cat = layer.feature.properties.category;
if (activeFilters.indexOf(cat) !== -1) {
layer.setStyle({ opacity: 1, fillOpacity: layer.feature.geometry.type === 'Point' ? 0.9 : 0.25 });
layer.setStyle({ opacity: 0.8, fillOpacity: layer.feature.geometry.type === 'Point' ? 0.25 : 0.25 });
if (layer.setRadius) layer.setRadius(8);
layer.options.interactive = true;
} else {