Make sidebar toggle for Regions actually work

This commit is contained in:
Paul Bienkowski 2022-07-25 17:56:34 +02:00
parent fac793e3a0
commit f11f55d0ef

View file

@ -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(), []);