# Legend

A layer's legend, derived from its style so the two cannot disagree.

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

## Signature

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

## Properties

### entries

```ts
readonly entries: readonly LegendEntry[];
```

The rows of the key, in the order the layer's style lists them.

## See also

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

Source: [packages/core/src/layers/style.ts:67](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/style.ts#L67)
