diff --git a/frontend/src/pages/MapPage/index.tsx b/frontend/src/pages/MapPage/index.tsx index f0baf7a..5304a79 100644 --- a/frontend/src/pages/MapPage/index.tsx +++ b/frontend/src/pages/MapPage/index.tsx @@ -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(), []);