Interface: GeoVisHoverTooltipProps
Defined in: react/GeoVisHoverTooltip.tsx:24
Properties
className?
optionalclassName?:string
Defined in: react/GeoVisHoverTooltip.tsx:34
Optional class for the tooltip container.
emptyValueLabel?
optionalemptyValueLabel?:string
Defined in: react/GeoVisHoverTooltip.tsx:40
Label shown when info.value is null (no mapData for the feature).
formatValue?
optionalformatValue?: (value) =>string
Defined in: react/GeoVisHoverTooltip.tsx:32
Formatter applied to info.value when no render prop is provided.
Parameters
| Parameter | Type |
|---|---|
value | string | number |
Returns
string
offset?
optionaloffset?: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?
optionalrender?: (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
| Parameter | Type |
|---|---|
info | MapHoverInfo |
Returns
ReactNode
style?
optionalstyle?:CSSProperties
Defined in: react/GeoVisHoverTooltip.tsx:36
Optional inline style overrides merged on top of the default tooltip style.