diff --git a/site/src/components/Explore.svelte b/site/src/components/Explore.svelte index 97fce3a..0572735 100644 --- a/site/src/components/Explore.svelte +++ b/site/src/components/Explore.svelte @@ -153,7 +153,13 @@ function _updateHeatPaint(width: number, opacityPct: number) { if (!map) return; const p = _heatPaint(width, opacityPct); - for (const id of ['explore-lines', 'explore-heat-global', ...HEAT_TYPES.map(t => `explore-heat-${t}`)]) { + // Lines layer: width from slider, opacity always full + if (map.getLayer('explore-lines')) { + map.setPaintProperty('explore-lines', 'line-width', p['line-width']); + map.setPaintProperty('explore-lines', 'line-opacity', 1); + } + // Heat layers: both width and opacity from sliders + for (const id of ['explore-heat-global', ...HEAT_TYPES.map(t => `explore-heat-${t}`)]) { if (!map.getLayer(id)) continue; map.setPaintProperty(id, 'line-width', p['line-width']); map.setPaintProperty(id, 'line-opacity', p['line-opacity']); @@ -324,17 +330,17 @@ +
{/if} -