mapbox-gl-contextmenu - v1.6.0
    Preparing search index...

    Interface ContextMenuItemEvent

    Event object passed to ContextMenuItem event handlers.

    interface ContextMenuItemEvent {
        features?: Feature<Geometry, GeoJsonProperties>[];
        lngLat: { lat: number; lng: number };
        map: Map$1;
        originalEvent: MouseEvent;
        point: { x: number; y: number };
        target: ContextMenuItem;
        type: "click";
    }
    Index

    Properties

    features?: Feature<Geometry, GeoJsonProperties>[]

    Features at the click location, if the menu was bound to specific layers.

    lngLat: { lat: number; lng: number }

    The geographic coordinates of the original right-click.

    map: Map$1

    The Mapbox GL or Maplibre GL map instance.

    originalEvent: MouseEvent

    The original DOM click event.

    point: { x: number; y: number }

    The pixel coordinates of the original right-click, relative to the map container.

    The menu item that fired the event.

    type: "click"

    The event type.