diff --git a/src/hooks/rain-earthquake/useAnalysisButton.ts b/src/hooks/rain-earthquake/useAnalysisButton.ts index 6cc50c1..a72299f 100644 --- a/src/hooks/rain-earthquake/useAnalysisButton.ts +++ b/src/hooks/rain-earthquake/useAnalysisButton.ts @@ -53,11 +53,11 @@ const RESOURCE_CONFIGS: ButtonResourceConfig[] = [ { key: LoadingResource.DEBRIS_FLOW_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'debris_flow' }, { key: LoadingResource.WATER_LOGGING_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'water_logging' }, { key: LoadingResource.FLASH_FLOOD_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'flash_flood' }, + { key: LoadingResource.COLLAPSE_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'collapse' }, { key: LoadingResource.RISK_POINT, category: 'risk-point' }, { key: LoadingResource.BRIDGE, category: 'bridge' }, { key: LoadingResource.RESERVOIR, category: 'reservoir' }, ]; - // ==================== 图层可见性判断 ==================== const isCategoryVisible = (category: PointResourceCategory, originalType?: string): boolean => { const visibilityMap: Record boolean> = { @@ -77,6 +77,7 @@ const isCategoryVisible = (category: PointResourceCategory, originalType?: strin debris_flow: () => poi.value.showDebrisFlowHiddenPoint.show, water_logging: () => poi.value.showWaterLoggingHiddenPoint.show, flash_flood: () => poi.value.showFlashFloodHiddenPoint.show, + collapse: () => poi.value.showCollapseHiddenPoint.show, }; return hiddenMap[originalType || '']?.() ?? false; }, diff --git a/src/hooks/rain-earthquake/useAroundAnalysis.ts b/src/hooks/rain-earthquake/useAroundAnalysis.ts index 8e2cab6..83e9906 100644 --- a/src/hooks/rain-earthquake/useAroundAnalysis.ts +++ b/src/hooks/rain-earthquake/useAroundAnalysis.ts @@ -32,6 +32,7 @@ export const useAroundAnalysis = () => { { key: LoadingResource.DEBRIS_FLOW_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'debris_flow', isVisible: () => poi.value.showDebrisFlowHiddenPoint.show }, { key: LoadingResource.WATER_LOGGING_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'water_logging', isVisible: () => poi.value.showWaterLoggingHiddenPoint.show }, { key: LoadingResource.FLASH_FLOOD_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'flash_flood', isVisible: () => poi.value.showFlashFloodHiddenPoint.show }, + { key: LoadingResource.COLLAPSE_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'collapse', isVisible: () => poi.value.showCollapseHiddenPoint.show }, { key: LoadingResource.RISK_POINT, category: 'risk-point', isVisible: () => map.value.riskPointShow.show }, { key: LoadingResource.BRIDGE, category: 'bridge', isVisible: () => infra.value.showBridge.show }, { key: LoadingResource.RESERVOIR, category: 'reservoir', isVisible: () => infra.value.showReservoir.show },