Interface RealtimeReconciliationMapLibreMap

Minimal MapLibre-shaped feature-state surface this adapter mutates. A real maplibregl.Map satisfies this; both methods are optional so a host without feature-state support degrades to a no-op "patch" path (the rebuild callback still fires normally).

interface RealtimeReconciliationMapLibreMap {
    removeFeatureState?(target: {
        id: FeatureId;
        source: string;
        sourceLayer?: string;
    }, key?: string): void;
    setFeatureState?(target: {
        id: FeatureId;
        source: string;
        sourceLayer?: string;
    }, state: Record<string, unknown>): void;
}

Methods