显示管网

This commit is contained in:
wzy-warehouse
2026-04-21 16:05:26 +08:00
parent d71112e1d3
commit faf67fb41a
6 changed files with 58 additions and 7 deletions
@@ -231,9 +231,7 @@ export const useEarthquakeDisasterChain = () => {
name: '显示管网系统',
statusStore: statusStore.infrastructureLayers,
statusKey: 'showNetworkSystem' as const,
callback: (status: unknown) => {
console.log('显示管网系统', status);
},
callback: layerControl.clickWaterPipe,
},
{
name: '显示交通道路',
+1 -3
View File
@@ -261,9 +261,7 @@ export const useRainDisasterChain = () => {
name: '显示管网系统',
statusStore: statusStore.infrastructureLayers,
statusKey: 'showNetworkSystem' as const,
callback: (status: unknown) => {
console.log('显示管网系统', status);
},
callback: layerControl.clickWaterPipe,
},
{
name: '显示交通道路',
+8
View File
@@ -61,6 +61,13 @@ export const useLayerControl = () => {
useStatusStore().poiLayers.showPopulationGrid.loading = true;
};
/**
* 显示管网
*/
const clickWaterPipe = () => {
useStatusStore().infrastructureLayers.showNetworkSystem.loading = true;
};
return {
clickHiddenDangerPoint,
clickHospital,
@@ -69,5 +76,6 @@ export const useLayerControl = () => {
clickFireStation,
clickStorePoints,
clickPopulationGrid,
clickWaterPipe,
};
};