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:52

Parameters
mapDisplay

MapDisplay

stateManager

StateManager

socketManager

SocketManager

Returns

AircraftInteractionManager

Methods

updateFollowing()
updateFollowing(aircraftData): void;

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

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:468

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

setDrawingToolActiveCheck()
setDrawingToolActiveCheck(check): void;

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

Register a predicate that reports whether any interactive drawing tool (route, shape, aircraft placement) is in progress. While true, map clicks are point placements: the empty-map unselect, the aircraft-icon select/unselect (with its camera flyTo), and the hover cursor swap are all suppressed.

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