fixed point opacity bug when deactivating categories in sidebar
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user