Skip to main content

Interface: GeoVisLegendProps

Defined in: ui/GeoVisLegend.tsx:37

Properties​

breaks?​

optional breaks?: number[]

Defined in: ui/GeoVisLegend.tsx:41

Explicit break points; overrides the legend's own thresholds.


className?​

optional className?: string

Defined in: ui/GeoVisLegend.tsx:49

Optional class applied to the legend container.


formatValue?​

optional formatValue?: (value) => string

Defined in: ui/GeoVisLegend.tsx:47

Formats numeric bin/circle values for display. When omitted, the default is the locale formatter for choropleth/categorical legends and the compact formatter (e.g. 500k) for proportional-circle legends.

Parameters​

ParameterType
valuenumber

Returns​

string


legendId​

legendId: string

Defined in: ui/GeoVisLegend.tsx:39

Id of the legend to resolve from the spec's legend registry.


noPositionWrap?​

optional noPositionWrap?: boolean

Defined in: ui/GeoVisLegend.tsx:57

When true, renders without the absolute-positioning wrapper even if the legend declares a position. Used by GeoVisProvider to stack every legend sharing a position inside one grouped overlay container.


sourceNode?​

optional sourceNode?: ReactNode

Defined in: ui/GeoVisLegend.tsx:51

Optional node rendered as the legend's reference/attribution footer.


stretch?​

optional stretch?: boolean

Defined in: ui/GeoVisLegend.tsx:63

When true, the card drops its fixed width and fills its container. Used by the compact legend panel, which spans the map from side to side — without this the card would keep its own width inside that full-width panel.