Class: MapSystemFlightPlanLayer
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:68
A map system layer that draws the flight plan.
Extends
Constructors
Constructor
new MapSystemFlightPlanLayer(
props):MapSystemFlightPlanLayer
Defined in: src/sdk/components/FSComponent.ts:73
Creates an instance of a DisplayComponent.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | MapSystemFlightPlanLayerProps | The propertis of the component. |
Returns
MapSystemFlightPlanLayer
Inherited from
Properties
clipBounds
protectedreadonlyclipBounds:VecNSubject
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:101
clippedPathStream
protectedreadonlyclippedPathStream:ClippedPathStream
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:102
context?
optionalcontext: [] =undefined
Defined in: src/sdk/components/FSComponent.ts:64
The context on this component, if any.
Inherited from
contextType?
readonlyoptionalcontextType: readonly [] =undefined
Defined in: src/sdk/components/FSComponent.ts:67
The type of context for this component, if any.
Inherited from
defaultRoleId
protectedreadonlydefaultRoleId:number
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:86
facLoader
protectedreadonlyfacLoader:FacilityLoader
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:94
facWaypointCache
protectedreadonlyfacWaypointCache:FacilityWaypointCache
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:95
flightPathLayerRef
protectedreadonlyflightPathLayerRef:NodeReference<MapCachedCanvasLayer<MapCachedCanvasLayerProps<any>>>
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:83
geoClipAntiMeridianBuffer
protectedreadonlygeoClipAntiMeridianBuffer:number
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:97
geoClipBounds
protectedreadonlygeoClipBounds:VecNSubject
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:99
geoClipLatitude
protectedreadonlygeoClipLatitude:number
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:98
geoClippedPathStream
protectedreadonlygeoClippedPathStream:GeoCylindricalClippedPathStream
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:100
instanceId
protectedreadonlyinstanceId:number
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:81
legWaypoints
protectedreadonlylegWaypoints:Map<LegDefinition, [Waypoint,number]>
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:90
pathStreamStack
protectedreadonlypathStreamStack:GeoProjectionPathStreamStack
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:103
planModule
protectedreadonlyplanModule:MapFlightPlanModule
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:87
props
Defined in: src/sdk/components/FSComponent.ts:61
The properties of the component.
Inherited from
updateScheduled
protectedupdateScheduled:boolean=false
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:105
waypointId
protectedwaypointId:number=0
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:92
waypointLayerRef
protectedreadonlywaypointLayerRef:NodeReference<MapSyncedCanvasLayer<MapCanvasLayerProps<any>>>
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:84
waypointPrefix
protectedreadonlywaypointPrefix:string
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:89
waypointsUpdating
protectedwaypointsUpdating:boolean=false
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:91
Methods
buildFixWaypoint()
protectedbuildFixWaypoint(leg,roleId):Promise<void>
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:363
Builds a standard facility fix waypoint for flight plan waypoint display.
Parameters
| Parameter | Type | Description |
|---|---|---|
leg | LegDefinition | The leg to build the waypoint for. |
roleId | number | The role ID to assign to the waypoint. |
Returns
Promise<void>
buildPlanWaypoint()
protectedbuildPlanWaypoint(leg,roleId):Promise<void>
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:291
Builds or refreshes a flight plan waypoint.
Parameters
| Parameter | Type | Description |
|---|---|---|
leg | LegDefinition | The leg to build the waypoint for. |
roleId | number | The role ID to assign to the waypoint. |
Returns
Promise<void>
buildTerminatorWaypoint()
protectedbuildTerminatorWaypoint(leg,roleId):Promise<void>
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:322
Builds a flight path terminator based waypoint.
Parameters
| Parameter | Type | Description |
|---|---|---|
leg | LegDefinition | The leg to build the waypoint for. |
roleId | number | The role ID to assign to the waypoint. |
Returns
Promise<void>
destroy()
destroy():
void
Defined in: src/sdk/components/FSComponent.ts:98
Destroys this component.
Returns
void
Inherited from
getContext()
protectedgetContext(context):never
Defined in: src/sdk/components/FSComponent.ts:106
Gets a context data subscription from the context collection.
Parameters
| Parameter | Type | Description |
|---|---|---|
context | never | The context to get the subscription for. |
Returns
never
The requested context.
Throws
An error if no data for the specified context type could be found.
Inherited from
initWaypointRenderer()
protectedinitWaypointRenderer():void
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:130
Initializes the waypoint renderer for this layer.
Returns
void
isVisible()
isVisible():
boolean
Defined in: src/sdk/components/map/MapLayer.ts:38
Checks whether this layer is visible.
Returns
boolean
whether this layer is visible.
Inherited from
onAfterRender()
onAfterRender(
node):void
Defined in: src/sdk/components/FSComponent.ts:87
A callback that is called after the component is rendered.
Parameters
| Parameter | Type | Description |
|---|---|---|
node | VNode | The component's VNode. |
Returns
void
Inherited from
onAttached()
onAttached():
void
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:108
This method is called when this layer is attached to its parent map component.
Returns
void
Overrides
onBeforeRender()
onBeforeRender():
void
Defined in: src/sdk/components/FSComponent.ts:80
A callback that is called before the component is rendered.
Returns
void
Inherited from
onDetached()
onDetached():
void
Defined in: src/sdk/components/map/MapLayer.ts:108
This method is called when this layer is detached from its parent map component.
Returns
void
Inherited from
onMapProjectionChanged()
onMapProjectionChanged(
mapProjection,changeFlags):void
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:201
This method is called when the map projection changes.
Parameters
| Parameter | Type | Description |
|---|---|---|
mapProjection | MapProjection | this layer's map projection. |
changeFlags | number | The types of changes made to the projection. |
Returns
void
Overrides
MapLayer.onMapProjectionChanged
onSleep()
onSleep():
void
Defined in: src/sdk/components/map/MapLayer.ts:81
This method is called when this layer's parent map is put to sleep.
Returns
void
Inherited from
onUpdated()
onUpdated(
time,elapsed):void
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:151
This method is called once every map update cycle.
Parameters
| Parameter | Type | Description |
|---|---|---|
time | number | The current time as a UNIX timestamp. |
elapsed | number | The elapsed time, in milliseconds, since the last update. |
Returns
void
Overrides
onVisibilityChanged()
onVisibilityChanged(
isVisible):void
Defined in: src/sdk/components/map/MapLayer.ts:60
This method is called when this layer's visibility changes.
Parameters
| Parameter | Type | Description |
|---|---|---|
isVisible | boolean | Whether the layer is now visible. |
Returns
void
Inherited from
onWake()
onWake():
void
Defined in: src/sdk/components/map/MapLayer.ts:74
This method is called when this layer's parent map is woken.
Returns
void
Inherited from
render()
render():
VNode
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:393
Renders the component.
Returns
A JSX element to be rendered.
Overrides
setVisible()
setVisible(
val):void
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:215
Sets this layer's visibility.
Parameters
| Parameter | Type | Description |
|---|---|---|
val | boolean | Whether this layer should be visible. |
Returns
void
Overrides
updateWaypoints()
protectedupdateWaypoints():Promise<void>
Defined in: src/sdk/components/mapsystem/layers/MapSystemFlightPlanLayer.tsx:225
Updates waypoints for the flight plan.
Returns
Promise<void>
Throws
An error if the waypoints are already updating.