Skip to main content

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​

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

interface MapKeyBlock

Properties​

chosenTime​

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​

readonly definition: LayerDefinition;

The layer's definition, which draws the glyphs.

entries​

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

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

id​

readonly id: string;

The layer's id.

name​

readonly name: string;

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

See also​

Source: packages/map/src/layers/mapKeyBlocks.ts:15