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

    Detail payload for geoleaf:popup:action.

    Dispatched (fire-and-forget) when a user clicks a popup action button (type: "action" in popup.fields). Listen via GeoLeaf.events.on("geoleaf:popup:action", …).

    interface GeoLeafPopupActionDetail {
        actionId: string;
        layerId: string;
        featureId: string | number | null;
        properties: Record<string, unknown>;
        lngLat?: { lat: number; lng: number };
    }
    Index

    Properties

    actionId: string

    Opaque action identifier from the button config.

    layerId: string

    Layer the feature belongs to.

    featureId: string | number | null

    Feature/POI identifier (null when the source has no stable id).

    properties: Record<string, unknown>

    Whitelisted subset of feature properties (per payloadFields).

    lngLat?: { lat: number; lng: number }

    Geographic position of the popup, when available.