Interface: MapHoverInfo
Defined in: react/contexts.ts:12
Snapshot of a feature currently hovered on the map. Coordinates are pixel
offsets relative to the map canvas, so consumers can render overlays inside
the same position: relative container that hosts <GeoVisCanvas>.
Properties
featureId
featureId:
string|number
Defined in: react/contexts.ts:18
Hovered feature's id (typically geometryId from mapData).
layerId
layerId:
string
Defined in: react/contexts.ts:14
Layer id under the cursor.
point
point:
object
Defined in: react/contexts.ts:26
Pixel coordinates relative to the map canvas.
x
x:
number
y
y:
number
sourceId
sourceId:
string
Defined in: react/contexts.ts:16
Source id backing the layer (kept so consumers can re-query feature-state).
value
value:
string|number|null
Defined in: react/contexts.ts:24
feature-state.value (set by mapData); supports the same value types
as MapDataRow.value (number | string | null). null when the feature
has no value bound or when the bound value is a non-finite number.