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

    GeoLeaf.FeatureInfo public façade (5 methods, v2.1.0).

    interface FeatureInfoPublicApi {
        isEnabled: () => boolean;
        close: () => void;
        openPopup: (
            detail: GeoLeafFeatureClickDetail,
            layout?: SidePanelLayout,
        ) => void;
        openSidePanel: (
            detail: GeoLeafFeatureClickDetail,
            layout?: SidePanelLayout,
        ) => void;
        getConfig: (layerId: string) => FeatureInfoLayerBinding | null;
    }
    Index
    isEnabled: () => boolean

    true when modules.feature-info.enabled.

    close: () => void

    Closes both the popup and the side-panel, whichever is open. A no-op when neither is — it is safe to call unconditionally, e.g. on a route change or a modal opening.

    ⚠️ This method is deliberately NOT gated on modules.feature-info.enabled, unlike the four others. Flipping the key to false while a surface is open must not strand a panel that no API can then close.

    GeoLeaf?.FeatureInfo?.close();
    
    openPopup: (detail: GeoLeafFeatureClickDetail, layout?: SidePanelLayout) => void

    Opens the popup at the click point. layout overrides the auto-resolved layer binding — used by callers with no layers.<id>.capabilities.feature-info config of their own (POI injection). "Voir plus" reuses the same override when opening the side-panel, so an overridden popup never falls back to a generic auto-resolved side-panel.

    openSidePanel: (
        detail: GeoLeafFeatureClickDetail,
        layout?: SidePanelLayout,
    ) => void

    Opens the side-panel — programmatic call or POI injection.

    getConfig: (layerId: string) => FeatureInfoLayerBinding | null

    Layer binding config, or null when the layer has no feature-info config.