Parameters passed to the arguments of the callback function when clicking on the map

interface MapClickEvent {
    latLng?: LatLng;
    lngLat: LngLatArray;
    pixel: Pixel;
    source?: unknown;
}

Properties

latLng?: LatLng

The geographical point where the mouse event occurred.

use lngLat: number[] instead

lngLat: LngLatArray

The geographical point where the mouse event occurred.

pixel: Pixel

Pixel coordinates of the point where the mouse event occurred relative to the map container.

source?: unknown

Map adapter original click event