Interface AutomaticMapLibreIntegrationMap

Minimal MapLibre-shaped surface the integration mutates incrementally. A real maplibregl.Map satisfies this; feature-state, filters, and hit-test are all optional so a raster-only mount still attaches cleanly (it simply has no interactive layers to bind).

interface AutomaticMapLibreIntegrationMap {
    getFeatureState?(target: {
        id: FeatureId;
        source: string;
        sourceLayer?: string;
    }): Record<string, unknown>;
    getFilter?(layerId: string): unknown;
    off?(event: string, layer: string, handler: ((...args: unknown[]) => void)): void;
    on?(event: string, layer: string, handler: ((...args: unknown[]) => void)): void;
    queryRenderedFeatures?(geometry?: HonuaScreenPoint | readonly [HonuaScreenPoint, HonuaScreenPoint], options?: {
        layers?: readonly string[];
    }): readonly unknown[];
    removeFeatureState?(target: {
        id: FeatureId;
        source: string;
        sourceLayer?: string;
    }, key?: string): void;
    setFeatureState?(target: {
        id: FeatureId;
        source: string;
        sourceLayer?: string;
    }, state: Record<string, unknown>): void;
    setFilter?(layerId: string, filter?: unknown): void;
    unproject?(point: readonly [number, number] | HonuaScreenPoint): readonly [number, number] | HonuaLngLat;
}

Hierarchy (view full)

Methods