# MapKeyBlock

What the map key shows for one layer that is on.

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

## Signature

```ts
import type { MapKeyBlock } from "@mapcairn/map";
 
interface MapKeyBlock
```

## Properties

### chosenTime

```ts
readonly chosenTime: Message | null;
```

The day or time the layer is set to, in words such as
`13:00 UTC on 11 November 2026`, or null when it has no date or time control.

### definition

```ts
readonly definition: LayerDefinition;
```

The layer's definition, which draws the glyphs.

### entries

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

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

### id

```ts
readonly id: string;
```

The layer's id.

### name

```ts
readonly name: string;
```

The layer's name, as the key's heading.

## See also

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

Source: [packages/map/src/layers/mapKeyBlocks.ts:15](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/layers/mapKeyBlocks.ts#L15)
