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(), []);
|
const regionLayers = useMemo(() => getRegionLayers(), []);
|
||||||
|
if (mapConfig.obsRegions.show) {
|
||||||
layers.push(...regionLayers);
|
layers.push(...regionLayers);
|
||||||
|
}
|
||||||
|
|
||||||
const eventsLayer = useMemo(() => getEventsLayer(), []);
|
const eventsLayer = useMemo(() => getEventsLayer(), []);
|
||||||
const eventsTextLayer = useMemo(() => getEventsTextLayer(), []);
|
const eventsTextLayer = useMemo(() => getEventsTextLayer(), []);
|
||||||
|
|
Loading…
Reference in a new issue