Class: MapOwnAirplaneWithGhostIconLayer<M>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:61
A version of MapOwnAirplaneLayer which includes a ghost icon that is shown when the main airplane icon is out of the map viewport.
Extends
Type Parameters
| Type Parameter | Default type |
|---|---|
M extends MapOwnAirplaneLayerModules | MapOwnAirplaneLayerModules |
Constructors
Constructor
new MapOwnAirplaneWithGhostIconLayer<
M>(props):MapOwnAirplaneWithGhostIconLayer<M>
Defined in: src/sdk/components/FSComponent.ts:76
Creates an instance of a DisplayComponent.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | MapOwnAirplaneWithGhostIconLayerProps | The propertis of the component. |
Returns
MapOwnAirplaneWithGhostIconLayer<M>
Inherited from
MapOwnAirplaneLayer.constructor
Properties
context?
optionalcontext: [] =undefined
Defined in: src/sdk/components/FSComponent.ts:67
The context on this component, if any.
Inherited from
contextType?
readonlyoptionalcontextType: readonly [] =undefined
Defined in: src/sdk/components/FSComponent.ts:70
The type of context for this component, if any.
Inherited from
MapOwnAirplaneLayer.contextType
enableGhostIcon
protectedreadonlyenableGhostIcon:Subscribable<boolean>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:83
ghostIconAnchor
protectedreadonlyghostIconAnchor:Subscribable<Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">>>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:90
ghostIconAnchorSub?
protectedoptionalghostIconAnchorSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:99
ghostIconEnabledSub?
protectedoptionalghostIconEnabledSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:97
ghostIconOffset
protectedreadonlyghostIconOffset:Float64Array<ArrayBufferLike>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:91
ghostIconSize
protectedreadonlyghostIconSize:Subscribable<number>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:89
ghostIconSizeSub?
protectedoptionalghostIconSizeSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:98
ghostIconStyle
protectedreadonlyghostIconStyle:ObjectSubject<{display:string;height:string;left:string;position:string;top:string;transform:string;transform-origin:string;width:string; }>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:67
ghostIconTransform
protectedreadonlyghostIconTransform:CssTransformChain<[CssTranslate3dTransform,CssRotateTransform]>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:78
ghostImageFilePath
protectedreadonlyghostImageFilePath:string|Subscribable<string>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:85
headingSub?
protectedoptionalheadingSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:97
Inherited from
MapOwnAirplaneLayer.headingSub
iconAnchor
protectedreadonlyiconAnchor:Subscribable<Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">>>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:72
Inherited from
MapOwnAirplaneLayer.iconAnchor
iconAnchorSub?
protectedoptionaliconAnchorSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:101
Inherited from
MapOwnAirplaneLayer.iconAnchorSub
iconOffset
protectedreadonlyiconOffset:Float64Array<ArrayBufferLike>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:74
Inherited from
MapOwnAirplaneLayer.iconOffset
iconSize
protectedreadonlyiconSize:Subscribable<number>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:71
Inherited from
iconSizeSub?
protectedoptionaliconSizeSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:100
Inherited from
MapOwnAirplaneLayer.iconSizeSub
iconTransform
protectedreadonlyiconTransform:CssTransformChain<[CssTranslate3dTransform,CssRotateTransform]>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:81
Inherited from
MapOwnAirplaneLayer.iconTransform
imageFilePath
protectedreadonlyimageFilePath:string|MappedSubscribable<string>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:53
Inherited from
MapOwnAirplaneLayer.imageFilePath
isGhostIconVisible
protectedisGhostIconVisible:boolean=false
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:93
isGsAboveTrackThreshold
protectedreadonlyisGsAboveTrackThreshold:MappedSubscribable<boolean>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:86
Inherited from
MapOwnAirplaneLayer.isGsAboveTrackThreshold
isInsideVisibilityBounds
protectedisInsideVisibilityBounds:boolean=true
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:89
Inherited from
MapOwnAirplaneLayer.isInsideVisibilityBounds
needUpdateGhostIconVisibility
protectedneedUpdateGhostIconVisibility:boolean=true
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:95
needUpdatePositionRotation
protectedneedUpdatePositionRotation:boolean=false
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:93
Inherited from
MapOwnAirplaneLayer.needUpdatePositionRotation
needUpdateVisibility
protectedneedUpdateVisibility:boolean=false
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:92
Inherited from
MapOwnAirplaneLayer.needUpdateVisibility
orientationSub?
protectedoptionalorientationSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:102
Inherited from
MapOwnAirplaneLayer.orientationSub
ownAirplaneIconModule
protectedreadonlyownAirplaneIconModule:M["ownAirplaneIcon"]
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:69
Inherited from
MapOwnAirplaneLayer.ownAirplaneIconModule
ownAirplanePropsModule
protectedreadonlyownAirplanePropsModule:M["ownAirplaneProps"]
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:68
Inherited from
MapOwnAirplaneLayer.ownAirplanePropsModule
planeRotation
protectedplaneRotation:number=0
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:90
Inherited from
MapOwnAirplaneLayer.planeRotation
positionSub?
protectedoptionalpositionSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:96
Inherited from
MapOwnAirplaneLayer.positionSub
props
props:
MapOwnAirplaneWithGhostIconLayerProps<M> &ComponentProps
Defined in: src/sdk/components/FSComponent.ts:64
The properties of the component.
Inherited from
showIcon
protectedshowIcon:boolean=true
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:88
Inherited from
showSub?
protectedoptionalshowSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:95
Inherited from
style
protectedreadonlystyle:ObjectSubject<{display:string;height:string;left:string;position:string;top:string;transform:string;transform-origin:string;width:string; }>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:57
Inherited from
trackSub?
protectedoptionaltrackSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:98
Inherited from
trackThresholdSub?
protectedoptionaltrackThresholdSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:99
Inherited from
MapOwnAirplaneLayer.trackThresholdSub
visibilityBounds
protectedreadonlyvisibilityBounds:Float64Array<ArrayBufferLike>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:79
Bounds as [left, top, right, bottom], in pixels.
Inherited from
MapOwnAirplaneLayer.visibilityBounds
geoPointCache
protectedreadonlystaticgeoPointCache:GeoPoint[]
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:63
vec2Cache
protectedreadonlystaticvec2Cache:Float64Array<ArrayBufferLike>[]
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:51
Inherited from
vecCache
protectedreadonlystaticvecCache:Float64Array<ArrayBufferLike>[]
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:65
Methods
destroy()
destroy():
void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:400
Destroys this component.
Returns
void
Overrides
getContext()
protectedgetContext(context):never
Defined in: src/sdk/components/FSComponent.ts:109
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
MapOwnAirplaneLayer.getContext
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:90
A callback that is called after the component is rendered.
Parameters
| Parameter | Type | Description |
|---|---|---|
node | VNode | The component's VNode. |
Returns
void
Inherited from
MapOwnAirplaneLayer.onAfterRender
onAttached()
onAttached():
void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:102
This method is called when this layer is attached to its parent map component.
Returns
void
Overrides
MapOwnAirplaneLayer.onAttached
onBeforeRender()
onBeforeRender():
void
Defined in: src/sdk/components/FSComponent.ts:83
A callback that is called before the component is rendered.
Returns
void
Inherited from
MapOwnAirplaneLayer.onBeforeRender
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
MapOwnAirplaneLayer.onDetached
onGroundSpeedAboveThresholdChanged()
protectedonGroundSpeedAboveThresholdChanged(value):void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:175
Callback fired when the ground speed above threshold state changes
Parameters
| Parameter | Type | Description |
|---|---|---|
value | boolean | the new value |
Returns
void
Inherited from
MapOwnAirplaneLayer.onGroundSpeedAboveThresholdChanged
onHeadingChanged()
protectedonHeadingChanged(value):void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:122
Callback fired when the airplane heading changes
Parameters
| Parameter | Type | Description |
|---|---|---|
value | number | the new value |
Returns
void
Overrides
MapOwnAirplaneLayer.onHeadingChanged
onMapProjectionChanged()
onMapProjectionChanged(
mapProjection,changeFlags):void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:260
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
Inherited from
MapOwnAirplaneLayer.onMapProjectionChanged
onOrientationChanged()
protectedonOrientationChanged(value):void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:136
Callback fired when the orientation mode changes
Parameters
| Parameter | Type | Description |
|---|---|---|
value | MapOwnAirplaneIconOrientation | the new value |
Returns
void
Overrides
MapOwnAirplaneLayer.onOrientationChanged
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
onTrackChanged()
protectedonTrackChanged(value):void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:129
Callback fired when the airplane track changes
Parameters
| Parameter | Type | Description |
|---|---|---|
value | number | the new value |
Returns
void
Overrides
MapOwnAirplaneLayer.onTrackChanged
onUpdated()
onUpdated(
time,elapsed):void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:144
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/layers/MapOwnAirplaneLayer.tsx:106
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
MapOwnAirplaneLayer.onVisibilityChanged
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/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:408
Renders the component.
Returns
A JSX element to be rendered.
Overrides
setVisible()
setVisible(
val):void
Defined in: src/sdk/components/map/MapLayer.ts:46
Sets this layer's visibility.
Parameters
| Parameter | Type | Description |
|---|---|---|
val | boolean | Whether this layer should be visible. |
Returns
void
Inherited from
MapOwnAirplaneLayer.setVisible
updateGhostIconOffset()
protectedupdateGhostIconOffset():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:183
Updates the ghost icon's offset from the projected position of the airplane.
Returns
void
updateGhostIconPositionRotation()
protectedupdateGhostIconPositionRotation():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:207
Updates the position and rotation of the ghost icon
Returns
void
updateGhostIconVisibility()
protectedupdateGhostIconVisibility():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:193
Updates the ghost icon's visibility
Returns
void
updateIconPositionRotation()
protectedupdateIconPositionRotation():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:198
Updates the airplane icon's projected position and rotation.
Returns
void
Overrides
MapOwnAirplaneLayer.updateIconPositionRotation
updateIconVisibility()
protectedupdateIconVisibility():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:284
Updates the airplane icon's visibility.
Returns
void
Inherited from
MapOwnAirplaneLayer.updateIconVisibility
updateOffset()
protectedupdateOffset():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:216
Updates the icon's offset from the projected position of the airplane.
Returns
void
Inherited from
MapOwnAirplaneLayer.updateOffset
updateVisibilityBounds()
protectedupdateVisibilityBounds():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneWithGhostIconLayer.tsx:157
Updates the boundaries within the map's projected window that define a region such that if the airplane's projected position falls outside of it, the icon is not visible and therefore does not need to be updated.
Returns
void