ClassifyConfig
Defined in: packages/core/src/schemas/classify.schema.ts:55
The validated classify: block, as authored.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
breaks? | number[] | Explicit step thresholds, strictly ascending. | packages/core/src/schemas/classify.schema.ts:63 |
categories? | Record<string, string> | (string | number | boolean)[] | Categorical form: { value: colour }, or a list of values coloured from the palette. | packages/core/src/schemas/classify.schema.ts:69 |
classes? | number | Class count for method: (default 5). | packages/core/src/schemas/classify.schema.ts:67 |
colors? | string[] | Explicit colours, one per class (or per category). | packages/core/src/schemas/classify.schema.ts:73 |
field | string | The feature property to classify. | packages/core/src/schemas/classify.schema.ts:57 |
format? | NumberFormatOptions | Legend number formatting, with MapLibre number-format option names. | packages/core/src/schemas/classify.schema.ts:85 |
method? | string | Compute the breaks from the data (GeoJSON sources only). | packages/core/src/schemas/classify.schema.ts:65 |
multiply? | number | Multiply the rate (e.g. 100000 for “per 100,000”). Needs normalize:. | packages/core/src/schemas/classify.schema.ts:61 |
noData? | string | Missing / non-numeric values: a colour (default light grey) or hide. | packages/core/src/schemas/classify.schema.ts:81 |
normalize? | string | Divide field by this property: classify a rate, not a count. | packages/core/src/schemas/classify.schema.ts:59 |
other? | string | Categories not listed: a colour (default grey) or hide. | packages/core/src/schemas/classify.schema.ts:83 |
palette? | string | A palette name: ColorBrewer (Blues, YlGnBu, RdBu, Set2 …), viridis, cividis, okabe-ito. | packages/core/src/schemas/classify.schema.ts:71 |
property? | string | The colour paint property to drive (default <type>-color). | packages/core/src/schemas/classify.schema.ts:77 |
radius? | number[] | Graduated symbols: one circle-radius per class (circle layers). | packages/core/src/schemas/classify.schema.ts:79 |
reverse? | boolean | Reverse the named palette (dark to light). | packages/core/src/schemas/classify.schema.ts:75 |