Skip to main content

Interface: MapSystemComponentProps<Modules>

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:13

Component props for MapSystemComponent.

Extends​

Type Parameters​

Type Parameter
Modules

Properties​

bus​

bus: EventBus

Defined in: src/sdk/components/map/MapComponent.ts:21

The event bus.

Inherited from​

MapComponentProps.bus


children?​

optional children: DisplayChildren[]

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

The children of the display component.

Inherited from​

MapComponentProps.children


class?​

optional class: string | SubscribableSet<string>

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:45

CSS class(es) to apply to the root of the component.


deadZone?​

optional deadZone: Readonly<Omit<Float64Array<ArrayBufferLike>, "set" | "sort" | "copyWithin">> | Subscribable<Readonly<Omit<Float64Array<ArrayBufferLike>, "set" | "sort" | "copyWithin">>>

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:18

The size of the dead zone around each edge of the map projection window, as [left, top, right, bottom] in pixels. Defaults to 0 on all sides.


model​

model: MapModel<Modules>

Defined in: src/sdk/components/map/MapComponent.ts:18

A map model.

Inherited from​

MapComponentProps.model


onAfterRender()​

onAfterRender: () => void

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:21

A function to be called after the map is rendered.

Returns​

void


onAfterUpdated()​

onAfterUpdated: (time, elapsed) => void

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:33

A function to be called immediately after the map's layers are updated.

Parameters​

ParameterType
timenumber
elapsednumber

Returns​

void


onBeforeUpdated()​

onBeforeUpdated: (time, elapsed) => void

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:30

A function to be called immediately before the map's layers are updated.

Parameters​

ParameterType
timenumber
elapsednumber

Returns​

void


onDeadZoneChanged()​

onDeadZoneChanged: (deadZone) => void

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:24

A function to be called when the size of the map's dead zone changes.

Parameters​

ParameterType
deadZoneReadonlyFloat64Array

Returns​

void


onDestroy()​

onDestroy: () => void

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:42

A function to be called when the map is destroyed.

Returns​

void


onMapProjectionChanged()​

onMapProjectionChanged: (mapProjection, changeFlags) => void

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:27

A function to be called when the map's projection changes.

Parameters​

ParameterType
mapProjectionMapProjection
changeFlagsnumber

Returns​

void


onSleep()​

onSleep: () => void

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:39

A function to be called when the map is put to sleep.

Returns​

void


onWake()​

onWake: () => void

Defined in: src/sdk/components/mapsystem/MapSystemComponent.tsx:36

A function to be called when the map is awakened.

Returns​

void


projectedSize​

projectedSize: Readonly<Omit<Float64Array<ArrayBufferLike>, "set" | "sort" | "copyWithin">> | Subscribable<Readonly<Omit<Float64Array<ArrayBufferLike>, "set" | "sort" | "copyWithin">>>

Defined in: src/sdk/components/map/MapComponent.ts:27

The size, as [width, height] in pixels, of the map component's projected window.

Inherited from​

MapComponentProps.projectedSize


projection?​

optional projection: MapProjection

Defined in: src/sdk/components/map/MapComponent.ts:30

A projection to inject. A default will be used if none is provided.

Inherited from​

MapComponentProps.projection


ref?​

optional ref: NodeReference<any>

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

A reference to the display component.

Inherited from​

MapComponentProps.ref


updateFreq?​

optional updateFreq: Subscribable<number>

Defined in: src/sdk/components/map/MapComponent.ts:24

The update frequency of the map, in hertz.

Inherited from​

MapComponentProps.updateFreq