Skip to main content

ShapeCategory

One category of a polygon or line style.

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

Signature​

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

interface ShapeCategory extends ShapeMarks

Properties​

colour​

readonly colour: PaletteSlot;

The palette slot the matching features are drawn in.

label​

readonly label: DefinitionText;

The legend's entry.

value​

readonly value: string | number;

The field value this category matches.

See also​

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