添加崩塌隐患点脉冲效果
This commit is contained in:
@@ -53,11 +53,11 @@ const RESOURCE_CONFIGS: ButtonResourceConfig[] = [
|
|||||||
{ key: LoadingResource.DEBRIS_FLOW_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'debris_flow' },
|
{ 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.WATER_LOGGING_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'water_logging' },
|
||||||
{ key: LoadingResource.FLASH_FLOOD_HIDDEN_POINT, category: 'hidden-danger', forcedType: 'flash_flood' },
|
{ 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.RISK_POINT, category: 'risk-point' },
|
||||||
{ key: LoadingResource.BRIDGE, category: 'bridge' },
|
{ key: LoadingResource.BRIDGE, category: 'bridge' },
|
||||||
{ key: LoadingResource.RESERVOIR, category: 'reservoir' },
|
{ key: LoadingResource.RESERVOIR, category: 'reservoir' },
|
||||||
];
|
];
|
||||||
|
|
||||||
// ==================== 图层可见性判断 ====================
|
// ==================== 图层可见性判断 ====================
|
||||||
const isCategoryVisible = (category: PointResourceCategory, originalType?: string): boolean => {
|
const isCategoryVisible = (category: PointResourceCategory, originalType?: string): boolean => {
|
||||||
const visibilityMap: Record<string, () => boolean> = {
|
const visibilityMap: Record<string, () => boolean> = {
|
||||||
@@ -77,6 +77,7 @@ const isCategoryVisible = (category: PointResourceCategory, originalType?: strin
|
|||||||
debris_flow: () => poi.value.showDebrisFlowHiddenPoint.show,
|
debris_flow: () => poi.value.showDebrisFlowHiddenPoint.show,
|
||||||
water_logging: () => poi.value.showWaterLoggingHiddenPoint.show,
|
water_logging: () => poi.value.showWaterLoggingHiddenPoint.show,
|
||||||
flash_flood: () => poi.value.showFlashFloodHiddenPoint.show,
|
flash_flood: () => poi.value.showFlashFloodHiddenPoint.show,
|
||||||
|
collapse: () => poi.value.showCollapseHiddenPoint.show,
|
||||||
};
|
};
|
||||||
return hiddenMap[originalType || '']?.() ?? false;
|
return hiddenMap[originalType || '']?.() ?? false;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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.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.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.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.RISK_POINT, category: 'risk-point', isVisible: () => map.value.riskPointShow.show },
|
||||||
{ key: LoadingResource.BRIDGE, category: 'bridge', isVisible: () => infra.value.showBridge.show },
|
{ key: LoadingResource.BRIDGE, category: 'bridge', isVisible: () => infra.value.showBridge.show },
|
||||||
{ key: LoadingResource.RESERVOIR, category: 'reservoir', isVisible: () => infra.value.showReservoir.show },
|
{ key: LoadingResource.RESERVOIR, category: 'reservoir', isVisible: () => infra.value.showReservoir.show },
|
||||||
|
|||||||
Reference in New Issue
Block a user