细化隐患点显示逻辑

This commit is contained in:
wzy-warehouse
2026-04-28 10:05:49 +08:00
parent 8170b3f162
commit 8dc3b6fe90
17 changed files with 794 additions and 149 deletions
+6 -1
View File
@@ -24,17 +24,22 @@ export const useHiddenPoint = () => {
/**
* 根据灾害类型获取对应图标
* @param disasterType - 灾害类型
* @param disasterType - 灾害类型(支持中英文)
* @returns 图标路径
*/
function getDisasterIcon(disasterType?: string): string {
// 支持英文和中文两种格式
switch (disasterType) {
case 'landslide':
case '滑坡':
return landslideIcon;
case 'debris_flow':
case '泥石流':
return debrisFlowIcon;
case 'water_logging':
case '内涝':
return waterLoggingIcon;
case 'flash_flood':
case '山洪':
return flashFloodIcon;
default: