GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Binds click + hover handlers that emit geoleaf:feature:click / geoleaf:feature:hover for an interactive layer. Kernel-only: no rendering, no popup — only events + the pointer cursor. Safe no-op when the layer is non-interactive (interactiveShape === false).

      Parameters

      • layerId: string

        GeoLeaf layer id (forwarded on every event).

      • def: Record<string, unknown>

        Layer definition; read for interactiveShape and zIndex.

      • nativeMap: GeoJSONNativeMap

        The raw maplibregl.Map instance.

      • subLayerIds: string[]

        MapLibre sub-layer IDs to bind events on.

      Returns void