显示管网
This commit is contained in:
@@ -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: '显示交通道路',
|
||||
|
||||
@@ -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: '显示交通道路',
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user