修复地图 跳转的顺序问题
This commit is contained in:
@@ -642,7 +642,7 @@ export default function DeviceOverviewPage() {
|
||||
<div><span style={{ color: '#ff4d4f' }}>■</span>{t('devices.s9')}</div>
|
||||
</div>
|
||||
</div>
|
||||
<CesiumMap devices={devicesAll} />
|
||||
<CesiumMap devices={devicesAll} mapLayer={currentStation?.siteMapName} />
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
|
||||
@@ -1245,6 +1245,7 @@ export default function RobotTaskPage() {
|
||||
ifClearNavLine={clearNavLine}
|
||||
ifClearPlanLine={clearPlanLine}
|
||||
routeMode={routeMode}
|
||||
mapLayer={currentStation?.siteMapName}
|
||||
/>
|
||||
|
||||
{/* 机器人状态悬浮面板 - 绝对定位左上角 */}
|
||||
|
||||
@@ -39,6 +39,8 @@ export default function WayLinePage({ onRefresh }) {
|
||||
const { t } = useTranslation();
|
||||
const { userInfo } = useSelector((state: RootState) => state.user);
|
||||
const { stationId } = useSelector((state: RootState) => state.station);
|
||||
const { currentStation } = useSelector((state: RootState) => state.station);
|
||||
|
||||
|
||||
const fontSmall = 'clamp(10px, 0.7vw, 11px)';
|
||||
const fontNormal = 'clamp(12px, 0.75vw, 13px)';
|
||||
@@ -896,7 +898,8 @@ export default function WayLinePage({ onRefresh }) {
|
||||
style={{ ...cardStyle, marginBottom: 10 }}
|
||||
>
|
||||
<div style={{ width: '100%', height: 420, background: '#e8f3ff url(https://picsum.photos/seed/solar_map_v2/1600/1000) center/cover', position: 'relative' }}>
|
||||
<CesiumMap realtimePosition={realtimePosition} drawRealTime={true}
|
||||
<CesiumMap realtimePosition={realtimePosition} drawRealTime={true} mapLayer={currentStation?.siteMapName}
|
||||
|
||||
points={points} focusLocation={focusLocation} from="device-control" realtimeType='plane' ifClearNavLine={clearNavLine} ifClearPlanLine={clearPlanLine} />
|
||||
<div style={{ position: 'absolute', top: 16, left: 16, background: 'rgba(255,255,255,0.92)', backdropFilter: 'blur(8px)', padding: '14px 16px', borderRadius: 10, width: 150, boxShadow: '0 4px 12px rgba(0,0,0,0.1)' }}>
|
||||
<div style={{ fontSize: fontSmall, display: 'flex', flexDirection: 'column', gap: 10 }}>
|
||||
|
||||
Reference in New Issue
Block a user