GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Renders a single image, hero or normal, matching the original gl-poi-sidepanel__photo structure.

      The wrapper carries gl-poi-sidepanel__photo, plus the gl-poi-sidepanel__photo--hero modifier when config.variant === "hero". The inner <img> is lazy-loaded and alt-labelled from config.label, falling back to "Photo".

      Parameters

      • config: RenderField

        Field configuration (variant, label).

      • value: unknown

        Candidate image URL (any type; only safe string URLs render).

      Returns HTMLElement | null

      The photo <div> element, or null when the URL is empty/unsafe.