| | |
| | | const [mapContainer, setMapContainer] = useState(null); |
| | | |
| | | const [mode, setMode] = useState(MAP_MODE.OBSERVER_MODE); |
| | | const [dataFetched, setDataFetched] = useState(false); |
| | | const [insightVisible, setInsightVisible] = useState(false); |
| | | const [deviceVisible, setDeviceVisible] = useState(false); |
| | | const [settingsVisible, setSettingsVisible] = useState(false); |
| | |
| | | setTimeout(() => { |
| | | player.adaptScreen(); |
| | | notify.info(translate('page.map.welcome')); |
| | | setDataFetched(true); |
| | | }, 200) |
| | | } |
| | | initialize(); |
| | |
| | | <MapSearch |
| | | mode={mode} |
| | | setMode={setMode} |
| | | dataFetched={dataFetched} |
| | | curZone={curZone} |
| | | setSpriteSettings={setSpriteSettings} |
| | | /> |
| | | {/* <TextField |
| | | variant="outlined" |
| | | size="small" |
| | | placeholder="搜索..." |
| | | sx={{ |
| | | width: '200px', |
| | | backgroundColor: theme.palette.background.paper, |
| | | borderRadius: 1, |
| | | }} |
| | | /> */} |
| | | <Box sx={{ flexGrow: 1 }} /> |
| | | |
| | | {mode === MAP_MODE.OBSERVER_MODE && ( |