ui/map/BaseDrawingManager¶
Classes¶
abstract BaseDrawingManager¶
Defined in: ui/map/BaseDrawingManager.ts:27
Extended by¶
Constructors¶
Constructor¶
Defined in: ui/map/BaseDrawingManager.ts:47
Parameters¶
mapDisplay¶
navaidSnapper¶
Returns¶
Properties¶
drawingMode¶
Defined in: ui/map/BaseDrawingManager.ts:28
finishOnEnter¶
Defined in: ui/map/BaseDrawingManager.ts:45
When true, the Enter key finishes the draw (in addition to right-click).
mapDisplay¶
Defined in: ui/map/BaseDrawingManager.ts:48
navaidSnapper¶
Defined in: ui/map/BaseDrawingManager.ts:49
Accessors¶
teardownSignal¶
Get Signature¶
Defined in: ui/map/BaseDrawingManager.ts:40
Returns¶
AbortSignal
Methods¶
isDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:56
Whether interactive drawing is currently active. Consumed by AircraftInteractionManager to suppress empty-map-click behavior.
Returns¶
boolean
toggleDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:61
Toggle drawing on/off; entry point for the panel buttons.
Returns¶
void
destroy()¶
Defined in: ui/map/BaseDrawingManager.ts:67
Cancel any in-progress draw and release long-lived listeners. Called from App.cleanup() at page teardown.
Returns¶
void
onDrawingEnabled()¶
Defined in: ui/map/BaseDrawingManager.ts:75
Set up preview sources/layers when drawing starts.
Returns¶
void
onDrawingDisabled()¶
Defined in: ui/map/BaseDrawingManager.ts:78
Clear/remove preview sources/layers when drawing stops.
Returns¶
void
onPointAdded()¶
Defined in: ui/map/BaseDrawingManager.ts:81
A point was placed (already navaid-snapped when applicable).
Parameters¶
point¶
Returns¶
void
onCursorMove()¶
Defined in: ui/map/BaseDrawingManager.ts:84
The cursor moved while drawing (navaid highlight already applied).
Parameters¶
point¶
Returns¶
void
finishDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:87
Finish the draw (right-click, or Enter when finishOnEnter).
Returns¶
void | Promise\<void>
cancelDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:90
Cancel the draw (Escape).
Returns¶
void
enableMapDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:96
Switch the map into drawing mode: crosshair cursor, subclass preview setup, and tracked event handlers.
Returns¶
void
disableMapDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:118
Restore the map to normal mode and tear down all drawing handlers.
Returns¶
void
suspendMapInteraction()¶
Defined in: ui/map/BaseDrawingManager.ts:133
Detach the drawing event handlers (map clicks, mousemove, keydown) and restore the cursor, while leaving the preview layers up. Used when a follow-up dialog takes over the interaction - so its keystrokes and clicks can't re-trigger the draw - and by disableMapDrawing(). Idempotent.
Returns¶
void
showDrawingBanner()¶
Defined in: ui/map/BaseDrawingManager.ts:202
Show the shared drawing banner with a message.
Parameters¶
message¶
string
Returns¶
void
hideDrawingBanner()¶
Defined in: ui/map/BaseDrawingManager.ts:211
Returns¶
void
Interfaces¶
DrawingPoint¶
Defined in: ui/map/BaseDrawingManager.ts:22
BaseDrawingManager - shared interactive point-drawing lifecycle for the route and shape drawing managers.
Owns the parts both managers used to duplicate: - drawing-mode flag and isDrawing() - map event wiring/teardown (click, right-click, mousemove, keydown) with crosshair cursor management - navaid snapping on click and hover highlight on mousemove - the shared drawing banner - key handling: Esc cancels, Enter optionally finishes (finishOnEnter)
Subclasses implement the hooks for their own preview layers, point bookkeeping, and command generation.
Properties¶
lat¶
Defined in: ui/map/BaseDrawingManager.ts:23
lng¶
Defined in: ui/map/BaseDrawingManager.ts:24