GeoLeaf Core API - v3.19.0
    Preparing search index...

    Which style a layer currently wears, as LayerDataApi.getStyle reports it.

    Both fields are string | null and never absent: a caller must handle "no style applied yet" anyway, and an optional field would let it read undefined as a value.

    ⚠️ label is null when the applied style has no display name — including the case where the underlying field holds a map-label CONFIG object rather than a name, which the style-file format allows. A name is returned only when it is one.

    interface LayerStyleInfo {
        id: string | null;
        label: string | null;
    }
    Index
    id: string | null

    Identifier of the applied style file (style.id), or null when it carries none.

    label: string | null

    Display name of the applied style, or null when it carries none.