Show colorscale whenever it is used

This commit is contained in:
gluap 2021-12-18 23:09:17 +01:00 committed by Paul Bienkowski
parent 4e45ec6744
commit 6158589b6f

View file

@ -107,7 +107,7 @@ function LayerSidebar({
<Header as="h4">Event points</Header> <Header as="h4">Event points</Header>
</label> </label>
</List.Item> </List.Item>
{showEvents && ( {(showEvents || showRoads) && (
<> <>
<List.Item> <List.Item>
<ColorMapLegend map={_.chunk(colorByDistance('distance_overtaker')[3].slice(3), 2)} /> <ColorMapLegend map={_.chunk(colorByDistance('distance_overtaker')[3].slice(3), 2)} />