Skip to main content

Function: GeoVisLegend()

GeoVisLegend(__namedParameters): Element | null

Defined in: react/GeoVisLegend.tsx:151

Renders a static, non-interactive legend from the current GeoVis spec.

Resolves the active LegendSpec by legendId (top-level spec.legends first, then per-layer layer.legends) and emits one swatch per categorical mapping entry or quantitative threshold bin. Designed for read-only display alongside GeoVisCanvas; it does not subscribe to pointer or hover events and therefore never re-renders on cursor activity.

Parameters

ParameterType
__namedParametersGeoVisLegendProps

Returns

Element | null