Skip to main content

Class: NearestStore

A nearest store.

Constructors

constructor

new NearestStore(loader, filter?): NearestStore

Create a NearestStore.

Parameters

NameTypeDescription
loaderFacilityLoaderA facility loader.
filter?AirportFilterAn instance of AirportFilter to use for filtration.

Returns

NearestStore

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:144

Properties

airportCount

Readonly airportCount: Subscribable<number>

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:132


loader

Optional loader: FacilityLoader

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:123


nearestAirports

nearestAirports: Map<string, NearbyAirport>

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:127


nearestFacilities

nearestFacilities: Map<string, AirportFacility>

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:126


nearestSubjectList

Readonly nearestSubjectList: ArraySubject<Subject<NearbyAirport>>

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:129


nearestSubjects

nearestSubjects: Subject<NearbyAirport>[]

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:128


planeHeading

Readonly planeHeading: Subject<number>

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:121


planePos

Readonly planePos: GeoPointSubject

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:120

Methods

createNearbyAirport

createNearbyAirport(facility): NearbyAirport

Create a NearbyAirport from an AirportFacility.

Parameters

NameTypeDescription
facilityAirportFacilityThe AirportFacility record.

Returns

NearbyAirport

The populated NearbyAirport

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:299


searchNearest

searchNearest(): void

Update our nearest airport list.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:182


setFilter

setFilter(runwayLength, surfaceType): void

Sets a new airport filter for the nearest search.

Parameters

NameTypeDescription
runwayLengthnumberThe desired minimum runway length in feet.
surfaceTypenumberThe allowable surface types.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:172


updateNearbyAirport

updateNearbyAirport(airport): undefined | NearbyAirport

Update the dynamic data on a nearby airport.

Parameters

NameTypeDescription
airportNearbyAirportThe airport to update.

Returns

undefined | NearbyAirport

An updated airport or undefined.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:349