Interface: MapData
Defined in: spec/types.ts:349
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:372
description?
optionaldescription?:string
Defined in: spec/types.ts:354
dimension?
optionaldimension?:"color"|"size"
Defined in: spec/types.ts:371
Visual dimension this dataset drives. When set, the adapter auto-discovers
which dataset provides color vs. size for each layer, eliminating the need
for layer-level mapDataColor/mapDataSize references.
Two datasets on the same source must use different dimension values.
joinKey?
optionaljoinKey?:string
Defined in: spec/types.ts:359
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:350
mapId
mapId:
string
Defined in: spec/types.ts:352
FK to sources[].id of a geojson source.
stateKey?
optionalstateKey?:string
Defined in: spec/types.ts:364
Feature-state key name used when applying this dataset via setFeatureState.
Defaults to 'value' for backward compatibility.
title?
optionaltitle?:string
Defined in: spec/types.ts:353