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