Skip to content

ui/map/navdata/NavSearchBox

Classes

Defined in: ui/map/navdata/NavSearchBox.ts:21

NavSearchBox - "go to" search for airports and waypoints.

Queries the /api/navdata/search endpoint (backed by the offline-built SQLite index) and flies the map to the chosen result. Wired to the static markup in index.html (#nav-search-input / #nav-search-results).

Constructors

Constructor
new NavSearchBox(mapDisplay): NavSearchBox;

Defined in: ui/map/navdata/NavSearchBox.ts:34

Parameters
mapDisplay

MapDisplay

Returns

NavSearchBox

Methods

init()
init(): void;

Defined in: ui/map/navdata/NavSearchBox.ts:38

Returns

void

setVisible()
setVisible(visible): void;

Defined in: ui/map/navdata/NavSearchBox.ts:65

Show or hide the search box. Hiding also closes any open results dropdown so it doesn't linger when the widget reappears.

Parameters
visible

boolean

Returns

void