GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Asks the taxonomy seam for the colours of a category / sub-category pill badge.

      Returns null — an uncoloured pill, exactly as before — whenever the seam is absent, the surface has not set colorBadges, the field is not one of the layer's taxonomy columns, or no colour resolves. The colours come back already validated, so the caller can assign them straight to the DOM.

      Parameters

      • layerId: string | undefined

        GeoLeaf layer id (from the render context).

      • feature: Record<string, unknown> | undefined

        Raw feature property bag.

      • surface: RenderSurface

        The surface being rendered.

      • field: string | undefined

        The badge field's configured name (e.g. properties.categoryId).

      Returns BadgeStyle | null