Skip to main content

Interface: GeoVisLegendProps

Defined in: ui/GeoVisLegend.tsx:31

Properties

breaks?

optional breaks?: number[]

Defined in: ui/GeoVisLegend.tsx:35

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


className?

optional className?: string

Defined in: ui/GeoVisLegend.tsx:43

Optional class applied to the legend container.


formatValue?

optional formatValue?: (value) => string

Defined in: ui/GeoVisLegend.tsx:41

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:33

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


noPositionWrap?

optional noPositionWrap?: boolean

Defined in: ui/GeoVisLegend.tsx:51

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:45

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