Interface: MapClickInfo
Defined in: react/contexts.ts:96
Snapshot of a feature clicked on the map. Unlike MapHoverInfo, this
persists until dismissed (another click or Escape). Includes lngLat (the
geographic coordinates of the click) so consumers can anchor popups to a
stable map position instead of tracking the cursor.
Properties
featureId
featureId:
string|number
Defined in: react/contexts.ts:102
Clicked feature's id (typically geometryId from mapData).
layerId
layerId:
string
Defined in: react/contexts.ts:98
Layer id that received the click.
lngLat
lngLat: [
number,number]
Defined in: react/contexts.ts:109
Geographic coordinates [lng, lat] of the click.
point
point:
object
Defined in: react/contexts.ts:111
Canvas-relative pixel coordinates of the click.
x
x:
number
y
y:
number
sourceId
sourceId:
string
Defined in: react/contexts.ts:100
Source id backing the layer.
value
value:
string|number|null
Defined in: react/contexts.ts:107
feature-state.value at click time; same semantics as
MapHoverInfo.value.