GeoLeaf Core API - v3.19.0
    Preparing search index...

    Interface LabelsNativeMap

    Minimal structural view of the MapLibre native map used by the renderer's symbol-layer path. Only the methods labels calls are typed.

    interface LabelsNativeMap {
        getStyle?: () => MapStyleLike | undefined;
        getSource: (id: string) => unknown;
        getLayer: (id: string) => unknown;
        addLayer: (layer: Record<string, unknown>) => void;
        removeLayer: (id: string) => void;
        on?: (event: string, handler: () => void) => unknown;
        off?: (event: string, handler: () => void) => unknown;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index
    getStyle?: () => MapStyleLike | undefined
    getSource: (id: string) => unknown
    getLayer: (id: string) => unknown
    addLayer: (layer: Record<string, unknown>) => void
    removeLayer: (id: string) => void
    on?: (event: string, handler: () => void) => unknown

    Engine event subscription — style.load, the signal that a basemap switch replaced the style. Optional, like off: test doubles and partial engines may omit them, and the capability then simply does not subscribe.

    off?: (event: string, handler: () => void) => unknown

    Symmetric detach for LabelsNativeMap.on.