Skip to main content

Interface: MapData

Defined in: spec/types.ts:291

Attribute dataset attached to a geojson source. Decouples geometry (in sources[]) from values, so the same geometry can be reused with multiple datasets, and values can be mutated independently from features.

Properties

data

data: MapDataRow[]

Defined in: spec/types.ts:302


description?

optional description?: string

Defined in: spec/types.ts:296


joinKey?

optional joinKey?: string

Defined in: spec/types.ts:301

Property name on each feature used to match data[].geometryId. Defaults to using feature.id when omitted.


mapDataId

mapDataId: string

Defined in: spec/types.ts:292


mapId

mapId: string

Defined in: spec/types.ts:294

FK to sources[].id of a geojson source.


title?

optional title?: string

Defined in: spec/types.ts:295