|
|
|
@ -18,7 +18,12 @@ const { Option } = Select;
|
|
|
|
|
const Property = () => { |
|
|
|
|
const selectedIds = useSelector(selectedIdsSelector); |
|
|
|
|
const { overlays } = useSelector(mapOptionsSelector); |
|
|
|
|
if (!selectedIds?.length) return <></>; |
|
|
|
|
if (!selectedIds?.length) |
|
|
|
|
return ( |
|
|
|
|
<> |
|
|
|
|
<div className="pane-title">覆盖物</div> |
|
|
|
|
</> |
|
|
|
|
); |
|
|
|
|
const [id] = selectedIds; |
|
|
|
|
const overlay = overlays.find((overlay) => overlay.id === id)!; |
|
|
|
|
const { lngLat = [0, 0] } = overlay; |
|
|
|
@ -69,6 +74,8 @@ const Property = () => {
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<> |
|
|
|
|
<div className="pane-title">覆盖物</div> |
|
|
|
|
<div className="property-area"> |
|
|
|
|
<Form size="small"> |
|
|
|
|
<Form.Item label="名称"> |
|
|
|
@ -103,6 +110,7 @@ const Property = () => {
|
|
|
|
|
) : null} |
|
|
|
|
</Form> |
|
|
|
|
</div> |
|
|
|
|
</> |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|