fix(map): 修正气象监测弹窗展示及标记类型设置
- 仅在标记类型为气象监测时渲染MeteorologicalMonitoring组件 - 选择气象监测标记时添加markType属性用于区分标记类型master
parent
accee1dd51
commit
6c9b5054af
|
|
@ -18,7 +18,9 @@ const CustomModal = () => {
|
|||
title={modalData.title || ""}
|
||||
wrapClassName="map_bi_model"
|
||||
>
|
||||
<MeteorologicalMonitoring />
|
||||
{
|
||||
modalData.markType === "meteorologicalMonitoring" && <MeteorologicalMonitoring />
|
||||
}
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ function RightUtils(props) {
|
|||
actions.setPureMap(!pureMap);
|
||||
break;
|
||||
case "weather":
|
||||
actions.selectMark({ title: "气象监测" });
|
||||
actions.selectMark({ title: "气象监测", markType: "meteorologicalMonitoring" });
|
||||
break;
|
||||
case "fourColor":
|
||||
if (!currentPort) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue