Class: MapBingLayer<M>
A FSComponent that display the MSFS Bing Map, weather radar, and 3D terrain.
Type parameters
Name | Type |
---|---|
M | any |
Hierarchy
MapLayer
<MapBingLayerProps
<M
>>↳
MapBingLayer
Constructors
constructor
• new MapBingLayer<M
>(props
): MapBingLayer
<M
>
Creates an instance of a DisplayComponent.
Type parameters
Name | Type |
---|---|
M | any |
Parameters
Name | Type | Description |
---|---|---|
props | MapBingLayerProps <M > | The propertis of the component. |
Returns
MapBingLayer
<M
>
Inherited from
Defined in
src/sdk/components/FSComponent.ts:73
Properties
context
• Optional
context: [] = undefined
The context on this component, if any.
Inherited from
Defined in
src/sdk/components/FSComponent.ts:64
contextType
• Optional
Readonly
contextType: readonly [] = undefined
The type of context for this component, if any.
Inherited from
Defined in
src/sdk/components/FSComponent.ts:67
props
• props: MapBingLayerProps
<M
> & ComponentProps
The properties of the component.
Inherited from
Defined in
src/sdk/components/FSComponent.ts:61
Methods
destroy
▸ destroy(): void
Destroys this component.
Returns
void
Inherited from
Defined in
src/sdk/components/FSComponent.ts:98
getContext
▸ getContext(context
): never
Gets a context data subscription from the context collection.
Parameters
Name | 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
Defined in
src/sdk/components/FSComponent.ts:106
isVisible
▸ isVisible(): boolean
Checks whether this layer is visible.
Returns
boolean
whether this layer is visible.
Inherited from
Defined in
src/sdk/components/map/MapLayer.ts:38
onAfterRender
▸ onAfterRender(node
): void
A callback that is called after the component is rendered.
Parameters
Name | Type | Description |
---|---|---|
node | VNode | The component's VNode. |
Returns
void
Inherited from
Defined in
src/sdk/components/FSComponent.ts:87
onAttached
▸ onAttached(): void
This method is called when this layer is attached to its parent map component.
Returns
void
Overrides
Defined in
src/sdk/components/map/layers/MapBingLayer.tsx:111
onBeforeRender
▸ onBeforeRender(): void
A callback that is called before the component is rendered.
Returns
void
Inherited from
Defined in
src/sdk/components/FSComponent.ts:80
onDetached
▸ onDetached(): void
This method is called when this layer is detached from its parent map component.
Returns
void
Inherited from
Defined in
src/sdk/components/map/MapLayer.ts:108
onMapProjectionChanged
▸ onMapProjectionChanged(mapProjection
, changeFlags
): void
This method is called when the map projection changes.
Parameters
Name | Type | Description |
---|---|---|
mapProjection | MapProjection | this layer's map projection. |
changeFlags | number | The types of changes made to the projection. |
Returns
void
Overrides
MapLayer.onMapProjectionChanged
Defined in
src/sdk/components/map/layers/MapBingLayer.tsx:179
onSleep
▸ onSleep(): void
This method is called when this layer's parent map is put to sleep.
Returns
void
Overrides
Defined in
src/sdk/components/map/layers/MapBingLayer.tsx:132
onUpdated
▸ onUpdated(time
, elapsed
): void
This method is called once every map update cycle.
Parameters
Name | 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
Defined in
src/sdk/components/map/layers/MapBingLayer.tsx:198
onVisibilityChanged
▸ onVisibilityChanged(isVisible
): void
This method is called when this layer's visibility changes.
Parameters
Name | Type | Description |
---|---|---|
isVisible | boolean | Whether the layer is now visible. |
Returns
void
Overrides
Defined in
src/sdk/components/map/layers/MapBingLayer.tsx:106
onWake
▸ onWake(): void
This method is called when this layer's parent map is woken.
Returns
void
Overrides
Defined in
src/sdk/components/map/layers/MapBingLayer.tsx:127
render
▸ render(): VNode
Renders the component.
Returns
A JSX element to be rendered.
Overrides
Defined in
src/sdk/components/map/layers/MapBingLayer.tsx:245
resetImgSrc
▸ resetImgSrc(): void
Resets the underlying Bing component's img src attribute.
Returns
void
Defined in
src/sdk/components/map/layers/MapBingLayer.tsx:211
setVisible
▸ setVisible(val
): void
Sets this layer's visibility.
Parameters
Name | Type | Description |
---|---|---|
val | boolean | Whether this layer should be visible. |
Returns
void
Inherited from
Defined in
src/sdk/components/map/MapLayer.ts:46
updatePositionRadius
▸ updatePositionRadius(): void
Updates the Bing map center position and radius.
Returns
void
Defined in
src/sdk/components/map/layers/MapBingLayer.tsx:218