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