Make sidebar toggle for Regions actually work

This commit is contained in:
Paul Bienkowski 2022-07-25 17:56:34 +02:00 committed by gluap
parent b12cb1a695
commit 3a7929cf8a
No known key found for this signature in database

View file

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