Skip to main content

Interface: VisualizationLayer

Defined in: spec/types.ts:219

Properties

activeLegendId?

optional activeLegendId?: string

Defined in: spec/types.ts:232

Id of the currently active legend from legends[].


geometry

geometry: GeoVisGeometryType

Defined in: spec/types.ts:222


id

id: string

Defined in: spec/types.ts:220


legends?

optional legends?: LegendSpec[]

Defined in: spec/types.ts:230

Optional alternative legend definitions presented as runtime toggles.


mapDataId?

optional mapDataId?: string

Defined in: spec/types.ts:238

Optional reference to an entry in spec.mapData. When present, the layer can be styled/queried by per-feature values coming from the dataset (joined via feature.id or mapData.joinKey).


maxzoom?

optional maxzoom?: number

Defined in: spec/types.ts:227


minzoom?

optional minzoom?: number

Defined in: spec/types.ts:226


paint?

optional paint?: LayerPaint

Defined in: spec/types.ts:228


sourceId

sourceId: string

Defined in: spec/types.ts:221


sourceLayer?

optional sourceLayer?: string

Defined in: spec/types.ts:223


title?

optional title?: string

Defined in: spec/types.ts:224


visible?

optional visible?: boolean

Defined in: spec/types.ts:225