Make sidebar toggle for Regions actually work
This commit is contained in:
parent
fac793e3a0
commit
f11f55d0ef
|
@ -220,7 +220,9 @@ export default function MapPage() {
|
|||
}
|
||||
|
||||
const regionLayers = useMemo(() => getRegionLayers(), []);
|
||||
layers.push(...regionLayers);
|
||||
if (mapConfig.obsRegions.show) {
|
||||
layers.push(...regionLayers);
|
||||
}
|
||||
|
||||
const eventsLayer = useMemo(() => getEventsLayer(), []);
|
||||
const eventsTextLayer = useMemo(() => getEventsTextLayer(), []);
|
||||
|
|
Loading…
Reference in a new issue