Interface RealtimeReconciliationMapLibreAdapterOptions

interface RealtimeReconciliationMapLibreAdapterOptions {
    rebuild: ((result: RealtimeReconciliationResult<unknown>) => void | Promise<void>);
    sourceId: string;
    sourceLayer?: string;
    statusStateKey?: string;
}

Properties

rebuild: ((result: RealtimeReconciliationResult<unknown>) => void | Promise<void>)

Invoked once per mode: "rebuild" result instead of per-feature setFeatureState calls. Typically a mounted source's refresh()/setData() path. Never called after RealtimeReconciliationMapLibreAdapter.dispose.

sourceId: string

Mounted MapLibre source id setFeatureState/removeFeatureState target.

sourceLayer?: string

Vector source-layer, when the mounted source is a vector tile source.

statusStateKey?: string

Feature-state key set to the change kind ("create"/"update") on upserts.

"realtimeStatus"