Skip to content

ui/map/aircraft/AircraftInteractionManager

Classes

AircraftInteractionManager

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:24

Constructors

Constructor
new AircraftInteractionManager(
   mapDisplay, 
   stateManager, 
   socketManager): AircraftInteractionManager;

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:51

Parameters
mapDisplay

MapDisplay

stateManager

StateManager

socketManager

SocketManager

Returns

AircraftInteractionManager

Methods

updateFollowing()
updateFollowing(aircraftData): void;

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:416

Update follow mode camera position Called on each aircraft data update

Parameters
aircraftData

AircraftData

Returns

void

wasLastExplicitPosFor()
wasLastExplicitPosFor(aircraftId): boolean;

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:464

Check if we recently sent a POS command for this aircraft Used to avoid treating server responses to our own commands as unsolicited data

Parameters
aircraftId

string

Aircraft ID to check

Returns

boolean

true if we recently sent POS for this aircraft

sendExplicitPos()
sendExplicitPos(aircraftId): void;

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:476

Public wrapper around requestRouteData() used by other subsystems (e.g. RouteDrawingManager) that need BlueSky to re-broadcast ROUTEDATA for an aircraft. Marks the POS as explicit so the resulting ROUTEDATA is processed on the normal (non-unsolicited) path in App.onRouteData.

Parameters
aircraftId

string

Returns

void

setRouteDrawingActiveCheck()
setRouteDrawingActiveCheck(check): void;

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:485

Register a predicate that reports whether interactive route drawing is currently in progress. When true, empty-map clicks are suppressed from the "unselect aircraft" path so they can be consumed as waypoint drops.

Parameters
check

() => boolean

Returns

void

getFollowingAircraft()
getFollowingAircraft(): string | null;

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:492

Get currently following aircraft ID

Returns

string | null

isFollowing()
isFollowing(): boolean;

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:499

Check if in follow mode

Returns

boolean

destroy()
destroy(): void;

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:507

Cleanup resources. Map listeners die with the map; the document listeners and state subscription must be released explicitly.

Returns

void

Interfaces

AircraftClickEvent

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:20

Properties

aircraftId
aircraftId: string;

Defined in: ui/map/aircraft/AircraftInteractionManager.ts:21