Skip to main content

StyleCategory

One category of a categorical style.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { StyleCategory } from "@mapcairn/core";

interface StyleCategory

Properties​

colour​

readonly colour: PaletteSlot;

The palette slot the matching points are drawn in.

label​

readonly label: DefinitionText;

The legend's entry.

shape​

readonly shape?: MarkerShape;

The marker shape for this category, overriding the style's.

value​

readonly value: string | number;

The field value this category matches.

See also​

Source: packages/core/src/layers/definition.ts:323