GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Renders a category badge: <div class="gl-poi-badge-container"> wrapping a <span class="gl-poi-badge">.

      When the taxonomy hands over colours (the surface opted in via render.<surface>.colorBadges), the pill wears the same fill and border as the category's marker disc on the map — the pill and the symbol should read as one object. Without them the pill falls back to its stylesheet colours.

      Colours are written through the CSSOM, one property at a time. A literal style="…" attribute would be blocked by the strict style-src CSP; per-property writes are not. The values arrive pre-validated from taxonomy.

      Parameters

      • config: RenderField

        Field configuration — its style selects the pill variant.

      • value: unknown

        Already-resolved badge text.

      • OptionalbadgeStyle: BadgeStyle | null

        Colours from the taxonomy seam, or null for an uncoloured pill.

      Returns HTMLElement | null

      The rendered element, or null when the value is empty.