Skip to main content

Interface: GeoVisHoverTooltipProps

Defined in: react/GeoVisHoverTooltip.tsx:24

Properties

className?

optional className?: string

Defined in: react/GeoVisHoverTooltip.tsx:34

Optional class for the tooltip container.


emptyValueLabel?

optional emptyValueLabel?: string

Defined in: react/GeoVisHoverTooltip.tsx:40

Label shown when info.value is null (no mapData for the feature).


formatValue?

optional formatValue?: (value) => string

Defined in: react/GeoVisHoverTooltip.tsx:32

Formatter applied to info.value when no render prop is provided.

Parameters

ParameterType
valuestring | number

Returns

string


offset?

optional offset?: object

Defined in: react/GeoVisHoverTooltip.tsx:38

Pixel offset from the cursor; defaults to { x: 12, y: 12 }.

x

x: number

y

y: number


render?

optional render?: (info) => ReactNode

Defined in: react/GeoVisHoverTooltip.tsx:30

Custom renderer for the tooltip body. Receives the live hover snapshot (featureId, value, etc.) and returns the React node to display. When omitted, a default two-line layout is used (Feature #<id> + value).

Parameters

ParameterType
infoMapHoverInfo

Returns

ReactNode


style?

optional style?: CSSProperties

Defined in: react/GeoVisHoverTooltip.tsx:36

Optional inline style overrides merged on top of the default tooltip style.