Interface: MapAbstractNearestWaypointsLayerProps<R>
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:29
Component props for MapAbstractNearestWaypointsLayer.
Extends
MapLayerProps<any>
Type Parameters
| Type Parameter | Default type |
|---|---|
R extends MapWaypointRenderer<any> | MapWaypointRenderer |
Properties
bus
bus:
EventBus
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:32
The event bus.
children?
optionalchildren:DisplayChildren[]
Defined in: src/sdk/components/FSComponent.ts:122
The children of the display component.
Inherited from
class?
optionalclass:string|SubscribableSet<string>
Defined in: src/sdk/components/map/MapLayer.ts:25
The CSS class(es) to apply to the root of this layer.
Inherited from
deregisterWaypoint()
deregisterWaypoint: (
waypoint,renderer) =>void
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:47
A function which deregisters a waypoint with this layer's waypoint renderer.
Parameters
| Parameter | Type |
|---|---|
waypoint | MapWaypointRendererType<R> |
renderer | R |
Returns
void
facilityLoader?
optionalfacilityLoader:FacilityLoader
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:35
The facility loader to use. If not defined, then a default instance will be created.
getSearchCenter()?
optionalgetSearchCenter: (mapProjection) =>Readonly<LatLonInterface>
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:53
A function which gets the search center. If not defined, the search center defaults to the center of the map.
Parameters
| Parameter | Type |
|---|---|
mapProjection | MapProjection |
Returns
Readonly<LatLonInterface>
initRenderer()?
optionalinitRenderer: (waypointRenderer,canvasLayer) =>void
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:50
A function which initializes this layer's waypoint renderer.
Parameters
| Parameter | Type |
|---|---|
waypointRenderer | R |
canvasLayer | MapSyncedCanvasLayer |
Returns
void
mapProjection
mapProjection:
MapProjection
Defined in: src/sdk/components/map/MapLayer.ts:15
A map projection model.
Inherited from
model
model:
MapModel<any>
Defined in: src/sdk/components/map/MapLayer.ts:12
A map model.
Inherited from
onSessionsStarted()?
optionalonSessionsStarted: (airportSession,vorSession,ndbSession,intSession,userSession) =>void
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:68
A callback called when the search sessions are started.
Parameters
| Parameter | Type |
|---|---|
airportSession | NearestAirportSearchSession<Struct> |
vorSession | NearestVorSearchSession<Struct> |
ndbSession | NearestIcaoSearchSession<Struct> |
intSession | NearestIntersectionSearchSession<Struct> |
userSession | NearestRepoFacilitySearchSession<USR, Struct> |
Returns
void
ref?
optionalref:NodeReference<any>
Defined in: src/sdk/components/FSComponent.ts:125
A reference to the display component.
Inherited from
registerWaypoint()
registerWaypoint: (
waypoint,renderer) =>void
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:44
A function which registers a waypoint with this layer's waypoint renderer.
Parameters
| Parameter | Type |
|---|---|
waypoint | MapWaypointRendererType<R> |
renderer | R |
Returns
void
searchDebounceDelay?
optionalsearchDebounceDelay:number
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:65
The debounce delay for facility searches, in milliseconds. Defaults to 500 milliseconds.
searchItemLimit()?
optionalsearchItemLimit: (searchType,center,radius) =>number
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:59
A function which gets the item limit for facility searches.
Parameters
| Parameter | Type |
|---|---|
searchType | MapNearestWaypointsLayerSearchTypes |
center | Readonly<LatLonInterface> |
radius | number |
Returns
number
searchRadiusLimit()?
optionalsearchRadiusLimit: (searchType,center,radius) =>number
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:62
A function which gets the radius limit for facility searches, in great-arc radians.
Parameters
| Parameter | Type |
|---|---|
searchType | MapNearestWaypointsLayerSearchTypes |
center | Readonly<LatLonInterface> |
radius | number |
Returns
number
shouldRefreshSearch()?
optionalshouldRefreshSearch: (searchType,center,radius) =>boolean
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:56
A function which checks if a search should be refreshed. Defaults to true if not defined.
Parameters
| Parameter | Type |
|---|---|
searchType | MapNearestWaypointsLayerSearchTypes |
center | Readonly<LatLonInterface> |
radius | number |
Returns
boolean
updateFreq?
optionalupdateFreq:Subscribable<number>
Defined in: src/sdk/components/map/MapLayer.ts:22
A subscribable which provides the maximum update frequency of the layer, in hertz. Note that the actual update frequency will not exceed the update frequency of the layer's parent map. If not defined, the frequency will default to that of the layer's parent map.
Inherited from
waypointForFacility()
waypointForFacility: (
facility) =>MapWaypointRendererType<R>
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:41
A function which retrieves a waypoint for a facility.
Parameters
| Parameter | Type |
|---|---|
facility | Facility |
Returns
waypointRenderer
waypointRenderer:
R
Defined in: src/sdk/components/map/layers/MapNearestWaypointsLayer.tsx:38
The waypoint renderer to use.