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.
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 matchingmap.off(type, layerId, handler)with the same handler reference (MapLibre matches delegated listeners by identity).