GeoLeaf Core API - v3.19.0
    Preparing search index...
    • The id of the currently open tab, or null when the panel is closed or not built.

      ⚠️ The open state has no dedicated variable: it lives in the DOM, as the gl-is-active class on the tab button. This reads it back rather than shadowing it, so the value cannot drift from what the user sees.

      Returns string | null

      GeoLeaf?.UI?.openPanel("legend");
      GeoLeaf?.UI?.getOpenPanel(); // "legend"