Class: MapOwnAirplaneLayer<M>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:49
A layer which draws an own airplane icon. The icon is positioned at the projected location of the airplane and is rotated to match the airplane's heading.
Extends
Type Parameters
| Type Parameter | Default type |
|---|---|
M extends MapOwnAirplaneLayerModules | MapOwnAirplaneLayerModules |
Constructors
Constructor
new MapOwnAirplaneLayer<
M>(props):MapOwnAirplaneLayer<M>
Defined in: src/sdk/components/FSComponent.ts:73
Creates an instance of a DisplayComponent.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | MapOwnAirplaneLayerProps | The propertis of the component. |
Returns
MapOwnAirplaneLayer<M>
Inherited from
Properties
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
headingSub?
protectedoptionalheadingSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:92
iconAnchor
protectedreadonlyiconAnchor:Subscribable<Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">>>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:71
iconAnchorSub?
protectedoptionaliconAnchorSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:96
iconOffset
protectedreadonlyiconOffset:Float64Array<ArrayBufferLike>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:73
iconSize
protectedreadonlyiconSize:Subscribable<number>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:70
iconSizeSub?
protectedoptionaliconSizeSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:95
iconTransform
protectedreadonlyiconTransform:CssTransformChain<[CssTranslate3dTransform,CssRotateTransform]>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:76
imageFilePath
protectedreadonlyimageFilePath:string|MappedSubscribable<string>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:52
isGsAboveTrackThreshold
protectedreadonlyisGsAboveTrackThreshold:MappedSubscribable<boolean>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:81
isInsideVisibilityBounds
protectedisInsideVisibilityBounds:boolean=true
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:84
needUpdatePositionRotation
protectedneedUpdatePositionRotation:boolean=false
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:88
needUpdateVisibility
protectedneedUpdateVisibility:boolean=false
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:87
orientationSub?
protectedoptionalorientationSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:97
ownAirplaneIconModule
protectedreadonlyownAirplaneIconModule:M["ownAirplaneIcon"]
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:68
ownAirplanePropsModule
protectedreadonlyownAirplanePropsModule:M["ownAirplaneProps"]
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:67
planeRotation
protectedplaneRotation:number=0
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:85
positionSub?
protectedoptionalpositionSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:91
props
props:
MapOwnAirplaneLayerProps<M> &ComponentProps
Defined in: src/sdk/components/FSComponent.ts:61
The properties of the component.
Inherited from
showIcon
protectedshowIcon:boolean=true
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:83
showSub?
protectedoptionalshowSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:90
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:56
trackSub?
protectedoptionaltrackSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:93
trackThresholdSub?
protectedoptionaltrackThresholdSub:Subscription
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:94
visibilityBounds
protectedreadonlyvisibilityBounds:Float64Array<ArrayBufferLike>
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:74
vec2Cache
protectedreadonlystaticvec2Cache:Float64Array<ArrayBufferLike>[]
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:50
Methods
destroy()
destroy():
void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:287
Destroys this component.
Returns
void
Overrides
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
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/map/layers/MapOwnAirplaneLayer.tsx:107
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/map/layers/MapOwnAirplaneLayer.tsx:221
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/map/layers/MapOwnAirplaneLayer.tsx:231
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:101
This method is called when this layer's visibility changes.
Parameters
| Parameter | Type | Description |
|---|---|---|
isVisible | boolean | Whether the layer is now visible. |
Returns
void
Overrides
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/MapOwnAirplaneLayer.tsx:280
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
updateIconPositionRotation()
protectedupdateIconPositionRotation():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:252
Updates the airplane icon's projected position and rotation.
Returns
void
updateIconVisibility()
protectedupdateIconVisibility():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:245
Updates the airplane icon's visibility.
Returns
void
updateOffset()
protectedupdateOffset():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:177
Updates the icon's offset from the projected position of the airplane.
Returns
void
updateVisibilityBounds()
protectedupdateVisibilityBounds():void
Defined in: src/sdk/components/map/layers/MapOwnAirplaneLayer.tsx:194
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