Skip to main content

Interface: MapHoverInfo

Defined in: react/contexts.ts:10

Snapshot of a feature currently hovered on the map.

Properties

featureId

featureId: string | number

Defined in: react/contexts.ts:16

Hovered feature's id (typically geometryId from mapData).


layerId

layerId: string

Defined in: react/contexts.ts:12

Layer id under the cursor.


point

point: object

Defined in: react/contexts.ts:28

Viewport-absolute pixel coordinates of the cursor (clientX / clientY equivalent). Use these directly with position: fixed elements such as <GeoVisHoverTooltip>, which renders via a portal into document.body.

x

x: number

y

y: number


sourceId

sourceId: string

Defined in: react/contexts.ts:14

Source id backing the layer (kept so consumers can re-query feature-state).


value

value: string | number | null

Defined in: react/contexts.ts:22

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.