# StyleCategory

One category of a categorical style.

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

## Signature

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

## Properties

### colour

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

The palette slot the matching points are drawn in.

### label

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

The legend's entry.

### shape

```ts
readonly shape?: MarkerShape;
```

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

### value

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

The field value this category matches.

## See also

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

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