Files
xian_vue_new/src/hooks/rainstorm/useRainLegend.ts
T

22 lines
532 B
TypeScript
Raw Normal View History

2026-04-13 20:55:32 +08:00
import {
debrisFlowIcon,
flashFloodIcon,
landslideIcon,
riskAreaIcon,
waterLoggingIcon,
} from '@/assets';
// 引入图例钩子函数
export const useRainLegend = () => {
2026-04-13 20:55:32 +08:00
// 图例数据
const legendList = [
{ name: '滑坡隐患点', link: landslideIcon },
{ name: '泥石流隐患点', link: debrisFlowIcon },
{ name: '山洪隐患点', link: flashFloodIcon },
{ name: '内涝隐患点', link: waterLoggingIcon },
{ name: '风险区域', link: riskAreaIcon },
];
return { legendList };
};