| | |
| | | useTheme, |
| | | Fab, |
| | | } from '@mui/material'; |
| | | import { MAP_MODE } from "./constants"; |
| | | import { MAP_MODE, MAP_DEFAULT_ROTATION } from "./constants"; |
| | | import Player from './player'; |
| | | import * as Tool from './tool'; |
| | | import { NotificationProvider, useNotification } from './Notification'; |
| | |
| | | } |
| | | } |
| | | |
| | | player.rotateMap(localStorage.getItem('mapRotation')); |
| | | player.rotateMap(localStorage.getItem('mapRotation') || Tool.rotationParseNum(MAP_DEFAULT_ROTATION)); |
| | | setTimeout(() => { |
| | | notify.info(translate('page.map.welcome')); |
| | | player.adaptScreen(); |
| | |
| | | }} |
| | | > |
| | | <AltRoute /> |
| | | {translate('page.map.action.route')} |
| | | </Fab> |
| | | <FakeFab |
| | | /> |
| | | <FakeFab /> |
| | | </> |
| | | )} |
| | | <Fab |
| | |
| | | }} |
| | | > |
| | | <RotateRight /> |
| | | {/* {translate('page.map.action.adapt')} */} |
| | | {translate('page.map.action.rotate')} |
| | | </Fab> |
| | | <Fab |
| | | variant="extended" |
| | |
| | | }} |
| | | > |
| | | <FitScreen /> |
| | | {/* {translate('page.map.action.adapt')} */} |
| | | {translate('page.map.action.adapt')} |
| | | </Fab> |
| | | </Box> |
| | | </Box> |