GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Prevents click / scroll events on a control container from reaching the underlying map canvas.

      This utility uses native addEventListener in the bubbling phase so that events first reach child elements (accordion headers, toggle buttons) and are only stopped from propagating further up to the map.

      Parameters

      • container: HTMLElement

        The control's root HTMLElement.

      • Optionalcleanups: (() => void)[]

        Optional array; removal functions are pushed into it so the caller can tear down listeners on control removal.

      Returns void