import React from 'react'; import { Layout } from 'antd'; import styles from './index.less'; import AppHeader from '../AppHeader'; import AppToolbar from '../AppToolbar'; import AppControl from '../AppControl'; import AppPanel from '../AppPanel'; import AppLayerControl from '../AppLayer'; import AppMap from '../AppMap'; import { Provider } from 'inversify-react'; import type { IConfig } from '@antv/dipper-core'; import { TYPES } from '@antv/dipper-core'; import { useSceneContainer, useConfigService } from '../hooks'; import type { Container } from 'inversify'; const { Content } = Layout; interface IContainerProps { cfg: IConfig; children?: React.ReactNode; } export function ContainerContent({ children, }: { children?: React.ReactNode; }) { const { globalConfig } = useConfigService(); const { panel } = globalConfig; return ( {/* 地图 */} <> {/* 地图控件 图例、比例尺 */} {/* 添加图层 */} {/* 自定义内容 */} {children} {/* 地图信息栏 */} ); } export default function SceneContainer({ cfg, children, }: IContainerProps) { const { sceneContainer } = useSceneContainer(cfg); return sceneContainer ? ( <> {/* // @ts-ignore */} {/* 导航栏 */} {/* 导航栏工具条 */} {/* 地图区域 */} >{children} ) : ( <> ); }