GeoLeaf Core API - v3.19.0
    Preparing search index...
    • The attribute fields a layer SHOWS, under feature-info's reading rule (resolvePath over the normalized { properties, attributes } model).

      Only a field that declares display.surfaces is judged: a capture-only field (an edit block and no display) is filled when a feature is created, and its absence from the loaded data is normal, not a fault. titleField is not a data read — it names one of fields[] —, so it is not judged here either.

      Parameters

      • def: Readonly<Record<string, unknown>>

        A layer definition.

      Returns DeclaredField[]

      One declared field per displayed attribute; none when the layer declares no attributes block.

      attributeDeclaredFields({ attributes: { fields: [
      { field: "properties.NAME", label: "Nom", display: { surfaces: ["popup"] } },
      ] } });
      // → [{ key: "attributes.fields[0].field", field: "properties.NAME", present: … }]