GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Records a cleanup thunk for a delegated listener attached to map.

      Call immediately after map.on(type, layerId, handler), passing a thunk that issues the matching map.off(type, layerId, handler) with the same handler reference (MapLibre matches delegated listeners by identity).

      Parameters

      • map: object

        The native MapLibre map the listener is attached to.

      • cleanup: CleanupThunk

        Teardown that detaches the listener.

      Returns void