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

    Minimal structural view of the map handle returned by Core.getMap() as the labels module uses it. Permissive: the adapter is consumed via getNativeMap() / getLayerRegistry() for the symbol-layer path, plus on() / off() / getZoom() for the zoom listener. Narrow at the boundary.

    interface LabelsMapHandle {
        on(event: string, handler: (...args: unknown[]) => void): void;
        off?(event: string, handler: (...args: unknown[]) => void): void;
        getZoom(): number;
        getNativeMap?: () => LabelsNativeMap;
        getLayerRegistry?: () => LabelsLayerRegistry | undefined;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index

    Properties

    getNativeMap?: () => LabelsNativeMap
    getLayerRegistry?: () => LabelsLayerRegistry | undefined

    Methods

    • Parameters

      • event: string
      • handler: (...args: unknown[]) => void

      Returns void

    • Symmetric detach for LabelsMapHandle.on. Declared optional, like getNativeMap / getLayerRegistry below and for the same reason: the real MapLibre adapter implements it, but partial adapters and test doubles supply only what they are asked for. Optionality is what forces the teardown path to guard — without it the contract offered no way out at all, and destroy() could not release its zoomend subscription (CAPACITÉS backlog B.35b).

      Parameters

      • event: string
      • handler: (...args: unknown[]) => void

      Returns void