From 298fe3ea3994d82675bdb9166b3df0f8b027b276 Mon Sep 17 00:00:00 2001 From: Davide Scaini Date: Thu, 14 May 2026 15:43:12 +0200 Subject: [PATCH] =?UTF-8?q?explore:=20fix=20by-type=20layer=20visibility?= =?UTF-8?q?=20=E2=80=94=20only=20show=20selected=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/src/components/Explore.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/src/components/Explore.svelte b/site/src/components/Explore.svelte index dfd684e..102e323 100644 --- a/site/src/components/Explore.svelte +++ b/site/src/components/Explore.svelte @@ -146,7 +146,8 @@ map.setLayoutProperty('explore-lines', 'visibility', view === 'lines' ? 'visible' : 'none'); map.setLayoutProperty('explore-heat-global', 'visibility', view === 'heatmap' && heatMode === 'global' ? 'visible' : 'none'); for (const t of HEAT_TYPES) - map.setLayoutProperty(`explore-heat-${t}`, 'visibility', view === 'heatmap' && heatMode === 'bytype' ? 'visible' : 'none'); + map.setLayoutProperty(`explore-heat-${t}`, 'visibility', + view === 'heatmap' && heatMode === 'bytype' && selectedTypes.has(t) ? 'visible' : 'none'); } function _fitBounds(ts: Track[]) {