Skip to main content

Interface: VisualizationSpec

Defined in: spec/types.ts:423

Properties

adapterHints?

optional adapterHints?: unknown

Defined in: spec/types.ts:447

Deprecated

No longer used by the adapter. Kept for backward compatibility so existing specs continue to pass validateSpec(). Will be removed in a future breaking-change release.


basemap?

optional basemap?: BaseMapSpec

Defined in: spec/types.ts:430


description?

optional description?: string

Defined in: spec/types.ts:426


engine

engine: "maplibre"

Defined in: spec/types.ts:427


id

id: string

Defined in: spec/types.ts:424


layers

layers: VisualizationLayer[]

Defined in: spec/types.ts:432


legends?

optional legends?: LegendSpec[]

Defined in: spec/types.ts:434

Optional top-level legend registry used by legend UI components.


mapData?

optional mapData?: MapData[]

Defined in: spec/types.ts:440

Optional attribute datasets joined to geojson sources. Each entry references a source via mapId and provides per-feature values for use in styling, tooltips, charts.


mapType?

optional mapType?: "choropleth"

Defined in: spec/types.ts:428


metadata?

optional metadata?: Record<string, unknown>

Defined in: spec/types.ts:441


sources

sources: DataSource[]

Defined in: spec/types.ts:431


title?

optional title?: string

Defined in: spec/types.ts:425


view?

optional view?: ViewState

Defined in: spec/types.ts:429