From 70baeea7079117c5b29b94ca2ca3999c0a11faa9 Mon Sep 17 00:00:00 2001 From: Martin Fleischmann Date: Wed, 22 Jan 2025 11:25:50 +0100 Subject: [PATCH] filtering across layers --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 5e95bff..9f03557 100644 --- a/index.html +++ b/index.html @@ -330,8 +330,14 @@ const value = e.target.value; if (value === 'all') { map.setFilter('buildings', null); + map.setFilter('morphotopes', null); + map.setFilter('h3', null); + map.setFilter('grid', null); } else { map.setFilter('buildings', ['==', ['get', 'final_without_noise'], value]); + map.setFilter('morphotopes', ['==', ['get', 'final_without_noise'], value]); + map.setFilter('h3', ['==', ['get', 'final_without_noise'], value]); + map.setFilter('grid', ['==', ['get', 'final_without_noise'], value]); } };