添加了交通道路、高速、国道
This commit is contained in:
@@ -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: '显示水库',
|
||||
|
||||
@@ -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
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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: '显示水库',
|
||||
|
||||
Reference in New Issue
Block a user