Skip to main content

Class: G3XMapMiniCompassLayer

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/Layers/G3XMapMiniCompassLayer.tsx:47

A map layer which depicts a rotating compass arrow pointing to true north and optionally functions as a touchscreen button allowing the user to toggle the map orientation setting.

Extends​

Constructors​

Constructor​

new G3XMapMiniCompassLayer(props): G3XMapMiniCompassLayer

Defined in: src/sdk/components/FSComponent.ts:73

Creates an instance of a DisplayComponent.

Parameters​

ParameterTypeDescription
propsG3XMapMiniCompassLayerPropsThe propertis of the component.

Returns​

G3XMapMiniCompassLayer

Inherited from​

MapLayer<G3XMapMiniCompassLayerProps>.constructor

Properties​

context?​

optional context: [] = undefined

Defined in: src/sdk/components/FSComponent.ts:64

The context on this component, if any.

Inherited from​

MapLayer.context


contextType?​

readonly optional contextType: readonly [] = undefined

Defined in: src/sdk/components/FSComponent.ts:67

The type of context for this component, if any.

Inherited from​

MapLayer.contextType


props​

props: G3XMapMiniCompassLayerProps & ComponentProps

Defined in: src/sdk/components/FSComponent.ts:61

The properties of the component.

Inherited from​

MapLayer.props

Methods​

destroy()​

destroy(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/Layers/G3XMapMiniCompassLayer.tsx:178

Returns​

void

Inherit Doc​

Overrides​

MapLayer.destroy


getContext()​

protected getContext(context): never

Defined in: src/sdk/components/FSComponent.ts:106

Gets a context data subscription from the context collection.

Parameters​

ParameterTypeDescription
contextneverThe 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​

MapLayer.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​

MapLayer.isVisible


onAfterRender()​

onAfterRender(node): void

Defined in: src/sdk/components/FSComponent.ts:87

A callback that is called after the component is rendered.

Parameters​

ParameterTypeDescription
nodeVNodeThe component's VNode.

Returns​

void

Inherited from​

MapLayer.onAfterRender


onAttached()​

onAttached(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/Layers/G3XMapMiniCompassLayer.tsx:72

Returns​

void

Inherit Doc​

Overrides​

MapLayer.onAttached


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​

MapLayer.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​

MapLayer.onDetached


onMapProjectionChanged()​

onMapProjectionChanged(mapProjection, changeFlags): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/Layers/G3XMapMiniCompassLayer.tsx:78

Parameters​

ParameterType
mapProjectionMapProjection
changeFlagsnumber

Returns​

void

Inherit Doc​

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​

MapLayer.onSleep


onUpdated()​

onUpdated(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/Layers/G3XMapMiniCompassLayer.tsx:83

Returns​

void

Inherit Doc​

Overrides​

MapLayer.onUpdated


onVisibilityChanged()​

onVisibilityChanged(isVisible): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/Layers/G3XMapMiniCompassLayer.tsx:67

Parameters​

ParameterType
isVisibleboolean

Returns​

void

Inherit Doc​

Overrides​

MapLayer.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​

MapLayer.onWake


render()​

render(): VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/Map/Layers/G3XMapMiniCompassLayer.tsx:125

Returns​

VNode

Inherit Doc​

Overrides​

MapLayer.render


setVisible()​

setVisible(val): void

Defined in: src/sdk/components/map/MapLayer.ts:46

Sets this layer's visibility.

Parameters​

ParameterTypeDescription
valbooleanWhether this layer should be visible.

Returns​

void

Inherited from​

MapLayer.setVisible