Make sidebar toggle for Regions actually work
This commit is contained in:
parent
b12cb1a695
commit
3a7929cf8a
|
@ -231,7 +231,9 @@ function MapPage({ login }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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