feat: refine supply map layers and workbench branding

This commit is contained in:
2026-10-27 17:56:38 +08:00
parent 6983ba03f1
commit 4f0f34f460
23 changed files with 948 additions and 171 deletions
@@ -102,6 +102,7 @@ import {
} from "./layout/workbench-layout";
import { getResponsivePadding, getResponsiveWorkbenchPadding } from "./map/camera";
import { exportMapViewImage } from "./map/export-view";
import { setMapLayersVisibility } from "./map/layer-visibility";
import { parseScadaAnalysisItems } from "./map/scada-analysis";
import {
BASE_LAYER_OPTIONS,
@@ -724,9 +725,7 @@ function MapWorkbenchContent({
return;
}
getWorkbenchLayerIds(map, layerControlId).forEach((layerId) => {
map.setLayoutProperty(layerId, "visibility", visible ? "visible" : "none");
});
setMapLayersVisibility(map, getWorkbenchLayerIds(map, layerControlId), visible);
}
function handleTogglePresentationLayer(id: string, visible: boolean) {
const before = presentationLayerChangesRef.current.get(id) ?? (layerVisibility[id] !== false);