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

    Detail payload for geoleaf:feature:click.

    Dispatched when a user clicks an interactive GeoJSON / vector-tile feature. Cluster aggregates and POI markers are excluded (POI emits geoleaf:poi:click). Lets the feature-info capability open the popup / side-panel without the kernel knowing how attributes are rendered.

    interface GeoLeafFeatureClickDetail {
        layerId: string;
        featureId: string | number | null;
        properties: Record<string, unknown>;
        geometry: GeoLeafFeatureGeometry | null;
        lngLat: { lat: number; lng: number };
        point: { x: number; y: number };
    }
    Index

    Properties

    layerId: string

    GeoLeaf layer id the feature belongs to.

    featureId: string | number | null

    Stable feature id, or null when the source has none.

    properties: Record<string, unknown>

    Feature properties (attribute bag).

    geometry: GeoLeafFeatureGeometry | null

    Feature geometry, or null when unavailable.

    lngLat: { lat: number; lng: number }

    Geographic position of the click.

    point: { x: number; y: number }

    Pixel coordinates within the map container at the click point.