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[]) {