From 2a24f486b57a979285983adb92bf79153b2f4626 Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Sun, 19 Apr 2026 16:16:43 +0200 Subject: [PATCH] bugfix popups and tooltips of invisible layers can no loger be activated per mouse --- public/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/app.js b/public/js/app.js index 38bb322..6f6932d 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -712,9 +712,13 @@ function toggleCategoryFilter(checkbox) { if (activeFilters.indexOf(cat) !== -1) { layer.setStyle({ opacity: 1, fillOpacity: layer.feature.geometry.type === 'Point' ? 0.9 : 0.25 }); if (layer.setRadius) layer.setRadius(8); + layer.options.interactive = true; } else { layer.setStyle({ opacity: 0, fillOpacity: 0 }); if (layer.setRadius) layer.setRadius(0); + layer.options.interactive = false; + layer.closePopup(); + layer.closeTooltip(); } } });