Class: NearestStore
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:119
A nearest store.
Constructors
Constructor
new NearestStore(
loader
,filter?
):NearestStore
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:144
Create a NearestStore.
Parameters
Parameter | Type | Description |
---|---|---|
loader | FacilityLoader | A facility loader. |
filter? | AirportFilter | An instance of AirportFilter to use for filtration. |
Returns
NearestStore
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
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:299
Create a NearbyAirport from an AirportFacility.
Parameters
Parameter | Type | Description |
---|---|---|
facility | AirportFacility | The AirportFacility record. |
Returns
The populated NearbyAirport
searchNearest()
searchNearest():
void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:182
Update our nearest airport list.
Returns
void
setFilter()
setFilter(
runwayLength
,surfaceType
):void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:172
Sets a new airport filter for the nearest search.
Parameters
Parameter | Type | Description |
---|---|---|
runwayLength | number | The desired minimum runway length in feet. |
surfaceType | number | The allowable surface types. |
Returns
void
updateNearbyAirport()
updateNearbyAirport(
airport
):undefined
|NearbyAirport
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestStore.ts:349
Update the dynamic data on a nearby airport.
Parameters
Parameter | Type | Description |
---|---|---|
airport | NearbyAirport | The airport to update. |
Returns
undefined
| NearbyAirport
An updated airport or undefined.