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

    Resolved icon for a single feature, for the MAP.

    symbolId lives in the MapLibre ATLAS id-space: it carries a --<tint> suffix when a colour is resolved. The DOM id-space (<use href="#…">, used by feature-info) is a different one — see resolveTitleIcon, which returns the RAW id. Mixing them up makes icons silently vanish from the map.

    interface ResolvedIcon {
        useIcon: boolean;
        iconId: string | null;
        symbolId: string | null;
    }
    Index

    Properties

    useIcon: boolean

    Whether an icon should be shown for this feature.

    iconId: string | null

    Resolved sprite symbol id (unprefixed, untinted), or null.

    symbolId: string | null

    Resolved MapLibre image id (symbolPrefix + iconId [+ --tint]), or null.