路径规划
This commit is contained in:
@@ -235,9 +235,7 @@ export const useEarthquakeDisasterChain = () => {
|
||||
name: '显示交通道路',
|
||||
statusStore: statusStore.infrastructureLayers,
|
||||
statusKey: 'showTrafficRoad' as const,
|
||||
callback: (status: unknown) => {
|
||||
console.log('显示交通道路', status);
|
||||
},
|
||||
callback: layerControl.clickTrafficRoad,
|
||||
},
|
||||
{
|
||||
name: '显示桥梁',
|
||||
|
||||
@@ -76,6 +76,13 @@ export const useLayerControl = () => {
|
||||
useStatusStore().infrastructureLayers.showNetworkSystem.loading = true;
|
||||
};
|
||||
|
||||
/**
|
||||
* 显示交通道路
|
||||
*/
|
||||
const clickTrafficRoad = () => {
|
||||
useStatusStore().infrastructureLayers.showTrafficRoad.loading = true;
|
||||
};
|
||||
|
||||
return {
|
||||
clickHiddenDangerPoint,
|
||||
clickHospital,
|
||||
@@ -86,5 +93,6 @@ export const useLayerControl = () => {
|
||||
clickSchool,
|
||||
clickPopulationGrid,
|
||||
clickWaterPipe,
|
||||
clickTrafficRoad
|
||||
};
|
||||
};
|
||||
|
||||
@@ -258,9 +258,7 @@ export const useRainDisasterChain = () => {
|
||||
name: '显示交通道路',
|
||||
statusStore: statusStore.infrastructureLayers,
|
||||
statusKey: 'showTrafficRoad' as const,
|
||||
callback: (status: unknown) => {
|
||||
console.log('显示交通道路', status);
|
||||
},
|
||||
callback: layerControl.clickTrafficRoad,
|
||||
},
|
||||
{
|
||||
name: '显示桥梁',
|
||||
|
||||
Reference in New Issue
Block a user