Class: MapOwnAirplaneIconOrientationController
Defined in: src/sdk/components/mapsystem/controllers/MapOwnAirplaneIconOrientationController.ts:26
Controls the orientation of the own airplane icon set in MapOwnAirplaneIconModule based on a desired orientation and the map rotation type. If the desired orientation matches the map rotation (e.g. both Heading Up), the icon orientation is set to Map Up; otherwise the orientation is set to the desired orientation.
Extends
Constructors
Constructor
new MapOwnAirplaneIconOrientationController(
context
,desiredOrientation
):MapOwnAirplaneIconOrientationController
Defined in: src/sdk/components/mapsystem/controllers/MapOwnAirplaneIconOrientationController.ts:40
Constructor.
Parameters
Parameter | Type | Description |
---|---|---|
context | MapSystemContext <MapOwnAirplaneIconOrientationControllerModules > | This controller's map context. |
desiredOrientation | MapOwnAirplaneIconOrientation | Subscribable <MapOwnAirplaneIconOrientation > | The desired orientation of the own airplane icon. |
Returns
MapOwnAirplaneIconOrientationController
Overrides
MapSystemController
.constructor
Properties
context
protected
readonly
context:MapSystemContext
<MapOwnAirplaneIconOrientationControllerModules
,any
,any
,any
>
Defined in: src/sdk/components/mapsystem/MapSystemController.ts:24
Inherited from
Accessors
isAlive
Get Signature
get isAlive():
boolean
Defined in: src/sdk/components/mapsystem/MapSystemController.ts:20
Whether this controller is alive.
Returns
boolean
Inherited from
Methods
destroy()
destroy():
void
Defined in: src/sdk/components/mapsystem/controllers/MapOwnAirplaneIconOrientationController.ts:83
Destroys this controller.
Returns
void
Overrides
onAfterMapRender()
onAfterMapRender():
void
Defined in: src/sdk/components/mapsystem/controllers/MapOwnAirplaneIconOrientationController.ts:55
This method is called after this controller' map is rendered.
Returns
void
Overrides
MapSystemController
.onAfterMapRender
onAfterUpdated()
onAfterUpdated(
time
,elapsed
):void
Defined in: src/sdk/components/mapsystem/MapSystemController.ts:78
This method is called immediately after this controller's map updates its layers.
Parameters
Parameter | Type | Description |
---|---|---|
time | number | The current time, as a Javascript timestamp. |
elapsed | number | The elapsed time, in milliseconds, since the last update. |
Returns
void
Inherited from
MapSystemController
.onAfterUpdated
onBeforeUpdated()
onBeforeUpdated():
void
Defined in: src/sdk/components/mapsystem/controllers/MapOwnAirplaneIconOrientationController.ts:60
This method is called immediately before this controller's map updates its layers.
Returns
void
Overrides
MapSystemController
.onBeforeUpdated
onDeadZoneChanged()
onDeadZoneChanged(
deadZone
):void
Defined in: src/sdk/components/mapsystem/MapSystemController.ts:48
This method is called when the dead zone of this controller's map changes.
Parameters
Parameter | Type | Description |
---|---|---|
deadZone | ReadonlyFloat64Array | The map's new dead zone. |
Returns
void
Inherited from
MapSystemController
.onDeadZoneChanged
onMapDestroyed()
onMapDestroyed():
void
Defined in: src/sdk/components/mapsystem/controllers/MapOwnAirplaneIconOrientationController.ts:78
This method is called when this controller's map is destroyed.
Returns
void
Overrides
MapSystemController
.onMapDestroyed
onMapProjectionChanged()
onMapProjectionChanged(
mapProjection
,changeFlags
):void
Defined in: src/sdk/components/mapsystem/MapSystemController.ts:58
This method is called when the projection of this controller's map changes.
Parameters
Parameter | Type | Description |
---|---|---|
mapProjection | MapProjection | The map projection. |
changeFlags | number | Bit flags describing the type of change. |
Returns
void
Inherited from
MapSystemController
.onMapProjectionChanged
onSleep()
onSleep():
void
Defined in: src/sdk/components/mapsystem/MapSystemController.ts:92
This method is called when this controller's map is put to sleep.
Returns
void
Inherited from
onWake()
onWake():
void
Defined in: src/sdk/components/mapsystem/MapSystemController.ts:85
This method is called when this controller's map is awakened.
Returns
void