Interface: MapData
Defined in: spec/types.ts:633
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:656
description?
optionaldescription?:string
Defined in: spec/types.ts:638
dimension?
optionaldimension?:"color"|"size"
Defined in: spec/types.ts:655
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:643
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:634
mapId
mapId:
string
Defined in: spec/types.ts:636
FK to sources[].id of a geojson source.
stateKey?
optionalstateKey?:string
Defined in: spec/types.ts:648
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:637