# ShapeCategory

One category of a polygon or line style.

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

## Signature

```ts
import type { ShapeCategory } from "@mapcairn/core";
 
interface ShapeCategory extends ShapeMarks
```

## Properties

### colour

```ts
readonly colour: PaletteSlot;
```

The palette slot the matching features are drawn in.

### label

```ts
readonly label: DefinitionText;
```

The legend's entry.

### value

```ts
readonly value: string | number;
```

The field value this category matches.

## See also

- [`ShapeMarks`](https://docs.mapcairn.com/api/core/ShapeMarks.md)
- [`PaletteSlot`](https://docs.mapcairn.com/api/core/PaletteSlot.md)
- [`DefinitionText`](https://docs.mapcairn.com/api/core/DefinitionText.md)

Source: [packages/core/src/layers/definition.ts:393](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L393)
