| | |
| | | import MapSearch from "./header/MapSearch"; |
| | | import { startupOrShutdown } from "./http"; |
| | | import PulseSignal from "../page/components/PulseSignal"; |
| | | import FakeFab from "./header/FakeFab"; |
| | | |
| | | let player; |
| | | let websocket; |
| | |
| | | Tool.generateDynamicGraphic(curZone, JSON.parse(wsMsg), setCurSprite); |
| | | } |
| | | |
| | | player.rotateMap(localStorage.getItem('mapRotation')); |
| | | setTimeout(() => { |
| | | notify.info(translate('page.map.welcome')); |
| | | player.adaptScreen(); |
| | |
| | | }} |
| | | > |
| | | {mode !== MAP_MODE.MOVABLE_MODE && ( |
| | | <Fab |
| | | variant="extended" |
| | | color={showRoutes ? 'primary' : 'default'} |
| | | size="small" |
| | | onClick={() => { |
| | | showRoutes ? Tool.hideRoutes(curZone, setShowRoutes) : Tool.showRoutes(curZone, setShowRoutes) |
| | | }} |
| | | > |
| | | <AltRoute /> |
| | | </Fab> |
| | | <> |
| | | <Fab |
| | | variant="extended" |
| | | color={showRoutes ? 'primary' : 'default'} |
| | | size="small" |
| | | onClick={() => { |
| | | showRoutes ? Tool.hideRoutes(curZone, setShowRoutes) : Tool.showRoutes(curZone, setShowRoutes) |
| | | }} |
| | | > |
| | | <AltRoute /> |
| | | </Fab> |
| | | <FakeFab |
| | | /> |
| | | </> |
| | | )} |
| | | <Fab |
| | | variant="extended" |
| | | color="primary" |
| | | size="small" |
| | | onClick={() => { |
| | | player.rotateMap(); |
| | | // setTimeout(() => { |
| | | // player.adaptScreen(); |
| | | // }, 500) |
| | | player.rotateMap(Math.PI / 2); |
| | | }} |
| | | > |
| | | <RotateRight /> |