GeoLeaf Core API - v3.19.0
    Preparing search index...
    • A descriptor's selection, read back from the per-field entries of a link.

      Parameters

      • descriptor: { id: string; kind: string }

        The filter field the entries are read for: its id names the entry, its kind says how to read it.

      • entries: Readonly<Record<string, string>>

        The per-field entries (PermalinkState.fieldFilters).

      Returns PermalinkFilterField | null

      The serialised field to hand to GeoLeaf.Filter.applyFilter(), or null when the link carries nothing usable for that field.

      decodeFieldFilter({ id: "altitude", kind: "range" }, { altitude: "100.." });
      // → { id: "altitude", kind: "range", range: { min: 100 } }