explore: fix by-type layer visibility — only show selected types
This commit is contained in:
@@ -146,7 +146,8 @@
|
|||||||
map.setLayoutProperty('explore-lines', 'visibility', view === 'lines' ? 'visible' : 'none');
|
map.setLayoutProperty('explore-lines', 'visibility', view === 'lines' ? 'visible' : 'none');
|
||||||
map.setLayoutProperty('explore-heat-global', 'visibility', view === 'heatmap' && heatMode === 'global' ? 'visible' : 'none');
|
map.setLayoutProperty('explore-heat-global', 'visibility', view === 'heatmap' && heatMode === 'global' ? 'visible' : 'none');
|
||||||
for (const t of HEAT_TYPES)
|
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[]) {
|
function _fitBounds(ts: Track[]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user