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

    Detail payload for geoleaf:feature:hover.

    Dispatched on pointer move (phase: "move") and leave (phase: "leave") over an interactive GeoJSON / vector-tile feature. zIndex lets a consumer show only the topmost overlapping layer's tooltip. On "leave", feature fields are reset (featureId: null, empty properties).

    interface GeoLeafFeatureHoverDetail {
        layerId: string;
        featureId: string | number | null;
        properties: Record<string, unknown>;
        lngLat: { lat: number; lng: number };
        point: { x: number; y: number };
        zIndex: number;
        phase: "move" | "leave";
    }
    Index

    Properties

    layerId: string

    GeoLeaf layer id the feature belongs to.

    featureId: string | number | null

    Stable feature id, or null.

    properties: Record<string, unknown>

    Feature properties (empty on "leave").

    lngLat: { lat: number; lng: number }

    Pointer position.

    point: { x: number; y: number }

    Pixel coordinates within the map container at the pointer position.

    zIndex: number

    Layer stacking order — for tooltip priority across overlapping layers.

    phase: "move" | "leave"

    "move" while hovering, "leave" when the pointer exits the feature.