Skip to main content

Interface: EngineAdapter

Defined in: runtime/adapter.ts:24

Properties

id

id: "maplibre" | "deckgl"

Defined in: runtime/adapter.ts:25

Methods

applyPatch()?

optional applyPatch(patch): void

Defined in: runtime/adapter.ts:33

Parameters

ParameterType
patchSpecPatch

Returns

void


destroy()

destroy(): void

Defined in: runtime/adapter.ts:43

Returns

void


getCapabilities()

getCapabilities(): CapabilitySet

Defined in: runtime/adapter.ts:26

Returns

CapabilitySet


getNativeInstance()

getNativeInstance(): unknown

Defined in: runtime/adapter.ts:44

Returns

unknown


mount()

mount(container, spec, viewId): MountedView

Defined in: runtime/adapter.ts:27

Parameters

ParameterType
containerHTMLElement
specVisualizationSpec
viewIdstring

Returns

MountedView


setSelection()?

optional setSelection(selection): void

Defined in: runtime/adapter.ts:42

Applies (or, with null, clears) the runtime's current selection — swaps feature-state.selected on the live map. Optional: adapters that don't support feature-state selection simply skip this (dispatch() still tracks selection at the runtime level either way).

Parameters

ParameterType
selectionGeoVisSelection | null

Returns

void


setView()

setView(options): void

Defined in: runtime/adapter.ts:35

Imperatively moves the camera. Animated by default.

Parameters

ParameterType
optionsSetViewOptions

Returns

void


update()

update(spec): void

Defined in: runtime/adapter.ts:32

Parameters

ParameterType
specVisualizationSpec

Returns

void