GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Runs and discards every tracked cleanup for map, detaching all delegated listeners recorded via trackMapCleanup. Safe to call repeatedly and when nothing is tracked.

      Individual teardown errors are swallowed: after setStyle() the target layer may already be gone, in which case map.off() is a harmless no-op but could throw on an engine edge case — one failing teardown must not abort the rest.

      Parameters

      • map: object

        The native MapLibre map to flush.

      Returns void