GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Resolves a usable map instance: the explicit one when it is a map, otherwise the one held by Core, otherwise null.

      Parameters

      • explicitMap: unknown

        A map adapter or maplibregl.Map; undefined to use Core's.

      Returns unknown

      The resolved map, or null when none is available.

      S13 — this used to return any truthy argument unchanged, so ensureMap("foo") yielded "foo": the function ensured nothing, and the failure surfaced later at the first method call, far from the cause. It now validates, so a non-map yields null like an absent map. Both in-tree callers already handled null.