feat: refine supply map layers and workbench branding
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user