人口网格

This commit is contained in:
wzy-warehouse
2026-04-21 15:49:56 +08:00
parent 8863fafc69
commit d71112e1d3
12 changed files with 149 additions and 43 deletions
@@ -225,9 +225,7 @@ export const useEarthquakeDisasterChain = () => {
name: '显示人口网格',
statusStore: statusStore.poiLayers,
statusKey: 'showPopulationGrid' as const,
callback: (status: unknown) => {
console.log('显示人口网格', status);
},
callback: layerControl.clickPopulationGrid,
},
{
name: '显示管网系统',
+1
View File
@@ -80,6 +80,7 @@ export const useMap = () => {
useLoadingInformationStore().resetStatue();
}
} else {
console.log(pickedObject);
// 重置状态
useLoadingInformationStore().resetStatue();
}
+1 -3
View File
@@ -255,9 +255,7 @@ export const useRainDisasterChain = () => {
name: '显示人口网格',
statusStore: statusStore.poiLayers,
statusKey: 'showPopulationGrid' as const,
callback: (status: unknown) => {
console.log('显示人口网格', status);
},
callback: layerControl.clickPopulationGrid,
},
{
name: '显示管网系统',
+9
View File
@@ -53,6 +53,14 @@ export const useLayerControl = () => {
useStatusStore().poiLayers.showReservePoint.loading = true;
};
/**
* 点击显示人口网格
*/
const clickPopulationGrid = () => {
// 加载状态为true
useStatusStore().poiLayers.showPopulationGrid.loading = true;
};
return {
clickHiddenDangerPoint,
clickHospital,
@@ -60,5 +68,6 @@ export const useLayerControl = () => {
clickEmergencyShelter,
clickFireStation,
clickStorePoints,
clickPopulationGrid,
};
};