Skip to main content

Interface: EngineAdapter

Defined in: runtime/adapter.ts:45

Properties​

id​

id: "maplibre" | "deckgl"

Defined in: runtime/adapter.ts:46

Methods​

applyPatch()?​

optional applyPatch(patch): void

Defined in: runtime/adapter.ts:54

Parameters​

ParameterType
patchSpecPatch

Returns​

void


destroy()​

destroy(): void

Defined in: runtime/adapter.ts:64

Returns​

void


getCapabilities()​

getCapabilities(): CapabilitySet

Defined in: runtime/adapter.ts:47

Returns​

CapabilitySet


getNativeInstance()​

getNativeInstance(): unknown

Defined in: runtime/adapter.ts:65

Returns​

unknown


mount()​

mount(container, spec, viewId): MountedView

Defined in: runtime/adapter.ts:48

Parameters​

ParameterType
containerHTMLElement
specVisualizationSpec
viewIdstring

Returns​

MountedView


setSelection()?​

optional setSelection(selection): void

Defined in: runtime/adapter.ts:63

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:56

Imperatively moves the camera. Animated by default.

Parameters​

ParameterType
optionsSetViewOptions

Returns​

void


update()​

update(spec): void

Defined in: runtime/adapter.ts:53

Parameters​

ParameterType
specVisualizationSpec

Returns​

void