| | |
| | | const useStyles = createStyles(({ token }) => { |
| | | let dark = token.colorBgBase === '#000'; |
| | | return { |
| | | dark: dark, |
| | | layout: { |
| | | overflow: 'hidden', |
| | | }, |
| | |
| | | const [mapContainer, setMapContainer] = React.useState(null) |
| | | |
| | | React.useEffect(() => { |
| | | const player = new Player(mapRef.current); |
| | | const player = new Player(mapRef.current, styles.dark); |
| | | setApp(player.app); |
| | | setMapContainer(player.mapContainer); |
| | | Utils.syncApp(player.app); |
| | |
| | | <Layout className={styles.layout}> |
| | | <Header className={styles.header}> |
| | | <Row style={{ height: '100%' }}> |
| | | <Col span={8} style={{ backgroundColor: '#C8C7C5', }}></Col> |
| | | <Col span={16} style={{ backgroundColor: '#002FA7', }}> |
| | | <Col span={8} style={{}}></Col> |
| | | <Col span={16} style={{ backgroundColor: '#3C40C6', }}> |
| | | <Flex className={styles.flex} gap={'large'} justify={'flex-end'} align={'center'}> |
| | | <Button onClick={editHandle} size={'large'}><FormattedMessage id='map.edit' defaultMessage='编辑地图' /></Button> |
| | | </Flex> |