添加了交通道路、高速、国道

This commit is contained in:
zhuangzhuang2000
2026-04-25 21:05:59 +08:00
parent 0b35fc55fc
commit 813b902385
6 changed files with 113 additions and 13 deletions
@@ -249,17 +249,13 @@ export const useEarthquakeDisasterChain = () => {
name: '显示高速',
statusStore: statusStore.infrastructureLayers,
statusKey: 'showHighway' as const,
callback: (status: unknown) => {
console.log('显示高速', status);
},
callback: layerControl.clickHighway,
},
{
name: '显示国道',
statusStore: statusStore.infrastructureLayers,
statusKey: 'showMainRoad' as const,
callback: (status: unknown) => {
console.log('显示国道', status);
},
callback: layerControl.clickNationRoad,
},
{
name: '显示水库',
+17 -1
View File
@@ -83,6 +83,20 @@ export const useLayerControl = () => {
useStatusStore().infrastructureLayers.showTrafficRoad.loading = true;
};
/**
* 显示高速
*/
const clickHighway = () => {
useStatusStore().infrastructureLayers.showHighway.loading = true;
};
/**
* 显示国道
*/
const clickNationRoad = () => {
useStatusStore().infrastructureLayers.showMainRoad.loading = true;
};
return {
clickHiddenDangerPoint,
clickHospital,
@@ -93,6 +107,8 @@ export const useLayerControl = () => {
clickSchool,
clickPopulationGrid,
clickWaterPipe,
clickTrafficRoad
clickTrafficRoad,
clickHighway,
clickNationRoad
};
};
+2 -6
View File
@@ -272,17 +272,13 @@ export const useRainDisasterChain = () => {
name: '显示高速',
statusStore: statusStore.infrastructureLayers,
statusKey: 'showHighway' as const,
callback: (status: unknown) => {
console.log('显示高速', status);
},
callback: layerControl.clickHighway,
},
{
name: '显示国道',
statusStore: statusStore.infrastructureLayers,
statusKey: 'showMainRoad' as const,
callback: (status: unknown) => {
console.log('显示国道', status);
},
callback: layerControl.clickNationRoad,
},
{
name: '显示水库',