GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Renders a text field. When config.style === "title" or config.variant === "title", produces the sidepanel title (<h2 class="gl-poi-sidepanel__title"><span class="gl-poi-sidepanel__title-text">) — the title always renders (empty value coerced to ""). When iconSymbolId is provided (the feature's category/sub-category icon, resolved by the caller for this surface), the sprite glyph is prefixed BEFORE the title text, reproducing the legacy "category icon next to the title" behaviour; without it the title DOM is byte-identical to the pre-extraction original. Otherwise produces a gl-poi-sidepanel__desc paragraph, or a <div> with white-space: pre-wrap when config.variant === "multiline". Non-title fields return null when empty.

      Parameters

      • config: RenderField

        Field configuration.

      • value: unknown

        Already-resolved field value.

      • OptionaliconSymbolId: string | null

        Optional title-icon sprite symbol id to prefix (title path only).

      Returns HTMLElement | null

      The rendered element, or null for an empty non-title value.