ui/map/BaseDrawingManager¶
Classes¶
abstract BaseDrawingManager¶
Defined in: ui/map/BaseDrawingManager.ts:28
Extended by¶
Constructors¶
Constructor¶
Defined in: ui/map/BaseDrawingManager.ts:48
Parameters¶
mapDisplay¶
navaidSnapper¶
Returns¶
Properties¶
drawingMode¶
Defined in: ui/map/BaseDrawingManager.ts:29
finishOnEnter¶
Defined in: ui/map/BaseDrawingManager.ts:46
When true, the Enter key finishes the draw (in addition to right-click).
mapDisplay¶
Defined in: ui/map/BaseDrawingManager.ts:49
navaidSnapper¶
Defined in: ui/map/BaseDrawingManager.ts:50
Accessors¶
teardownSignal¶
Get Signature¶
Defined in: ui/map/BaseDrawingManager.ts:41
Returns¶
AbortSignal
Methods¶
isDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:57
Whether interactive drawing is currently active. Consumed by AircraftInteractionManager to suppress empty-map-click behavior.
Returns¶
boolean
toggleDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:62
Toggle drawing on/off; entry point for the panel buttons.
Returns¶
void
destroy()¶
Defined in: ui/map/BaseDrawingManager.ts:68
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:76
Set up preview sources/layers when drawing starts.
Returns¶
void
onDrawingDisabled()¶
Defined in: ui/map/BaseDrawingManager.ts:79
Clear/remove preview sources/layers when drawing stops.
Returns¶
void
onPointAdded()¶
Defined in: ui/map/BaseDrawingManager.ts:82
A point was placed (already navaid-snapped when applicable).
Parameters¶
point¶
Returns¶
void
onCursorMove()¶
Defined in: ui/map/BaseDrawingManager.ts:85
The cursor moved while drawing (already navaid-snapped when applicable).
Parameters¶
point¶
Returns¶
void
finishDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:88
Finish the draw (right-click, or Enter when finishOnEnter).
Returns¶
void | Promise\<void>
cancelDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:91
Cancel the draw (Escape).
Returns¶
void
enableMapDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:97
Switch the map into drawing mode: crosshair cursor, subclass preview setup, and tracked event handlers.
Returns¶
void
disableMapDrawing()¶
Defined in: ui/map/BaseDrawingManager.ts:127
Restore the map to normal mode and tear down all drawing handlers.
Returns¶
void
suspendMapInteraction()¶
Defined in: ui/map/BaseDrawingManager.ts:140
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:218
Show the shared drawing banner with a message.
Parameters¶
message¶
string
Returns¶
void
hideDrawingBanner()¶
Defined in: ui/map/BaseDrawingManager.ts:227
Returns¶
void
Interfaces¶
DrawingPoint¶
Defined in: ui/map/BaseDrawingManager.ts:23
BaseDrawingManager - shared interactive point-drawing lifecycle for the route, shape and aircraft-creation 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:24
lng¶
Defined in: ui/map/BaseDrawingManager.ts:25