Function: GeoVisHoverTooltip()
GeoVisHoverTooltip(
__namedParameters):ReactPortal|null
Defined in: react/GeoVisHoverTooltip.tsx:55
Renders a floating tooltip over the map whenever the user hovers a feature
on a polygon layer that has an activeLegendId. Uses position: fixed and
renders via ReactDOM.createPortal into document.body, so it does not
require a position: relative wrapper and is not clipped by overflow.
The hover tracking (mousemove/leave wiring, cursor changes, feature-state
lookup) lives in useMapHover, set up by <GeoVisProvider>. This component
is a thin presentational layer that consumes the live hover snapshot from
the dedicated GeoVisHoverContext via useGeoVisHover(), so high-frequency
hover updates do not re-render useGeoVis() consumers.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | GeoVisHoverTooltipProps |
Returns
ReactPortal | null