Part of [Design system](https://docs.mapcairn.com/design.md), which is built from [DESIGN.md](https://github.com/MapCairn/mapcairn/blob/main/DESIGN.md) in the repository, where it is edited.

| Component                              | Contract                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `MapKey`                               | A region named "Map key" (a `section` named by its h2) over the map, drawing the key of each layer that is on and has one, without opening Layers. It renders in `MapChrome`'s `mapKey` slot and nothing at all while no layer that is on has a key. One block for each such layer, in catalogue order: an h3 with the layer's name, for a layer with a date or date and time control a line such as "Showing 13:00 UTC on 11 November 2026" (the words `describeChosenTime` gives), and the key's rows one to a line, drawn by `LayerKey`, the component the Layers section uses too, so the two cannot differ. Its list is named "<layer name> key" (`data-testid` `map-key-list-<id>`), apart from the section's "Key for <layer name>". Every row is a glyph with its words, so colour is never the only signal. While the blocks are taller than the room, the area that scrolls has a tab stop with the focus ring and is named "Layer keys", so the keyboard can scroll it, and it has neither while everything fits. One button (`data-testid` `map-key-toggle`) minimises and restores it, 44 px or more, with `aria-expanded` and the focus ring. It is the same element in both states, so focus stays on it, and it has one name in both, "Key, 3 layers" ("Key, 1 layer"), with `aria-expanded` saying which. Open, it is a chevron that controls the blocks; minimised, it is a chip reading "Key, 3 layers", which is its whole name, so the name starts with the visible words (WCAG 2.5.3, Label in Name) in every language, with the first glyph of up to three layers, and the h2 stays, visually hidden. A phone in either orientation starts minimised: the key starts minimised when the viewport is narrower than 768 px or shorter than 500 px (`isCompactViewport`, the edges `chooseLayout` uses), so a phone on its side, which gets the side panel layout, starts minimised too, and it starts open on a larger screen, or as the host's `defaultMinimised` says. The start state is decided once, when the key first appears and the chrome has measured, so turning the phone or resizing the window afterwards does not change it, and the person's choice replaces it for the visit. The choice is held in memory: it is not stored, not in the address and not sent anywhere, so a reload starts from the default again. Nothing is announced when it appears. `mapKeyBlocks` returns the same blocks as plain data, for a drawing such as an image.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Range control                          | A `Slider` with a visible label and value, such as "Radius 20 px". Its host-keyed unit follows the active message catalogue. It changes how a layer is drawn and costs no data unless its value is in the URL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Date and time control                  | A `fieldset` whose legend is the control's label (such as "Half hour shown"), holding a native date input "Date (UTC)" bounded by the first and newest days and a native `select` "Time (UTC)" that lists only the times that exist on the chosen day, so a time the provider has not published yet is never offered. Under them, in words: "Showing 14:30 to 15:00 UTC on 11 November 2026. Newest available: 14:30 UTC on 11 November 2026. Newer times may not be out yet, so they are not offered.", then the definition's help line; both describe the two inputs (`aria-describedby`). Every time is UTC and says so. Changing the day keeps the time of day, moved back to the newest when the new day does not have it yet. Both inputs are 44 px or taller, and the `fieldset` is disabled, not hidden, while the control's condition is not met. The words change with the inputs and are not announced, because the inputs already say what changed; the one exception is a change of day that moves the time to the nearest one that exists, which is announced politely through `LiveRegion` ("Time moved to 14:00 UTC on 11 November 2026, the nearest available.").                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Tile layer status                      | A status line under a tile layer that is on. While the layer has had tiles asked for and none has loaded for `TILE_LAYER_SLOW_MS` (10 seconds, counted from the first tile asked for, without waiting for the map to go idle), it has an hourglass icon and says "Still waiting for imagery. The provider may be slow or not answering." in the muted text colour, because the provider may still answer; it is announced once, politely and kept (see `LiveRegion`), as "Rainfall: Still waiting for imagery. The provider may be slow or not answering.". When the map settles with tiles asked for and none loaded it has a warning icon instead, and replaces the waiting line: for a layer with a date or date and time control, "No imagery was found for 13:00 UTC on 11 November 2026. Try another." (the chosen day, or the chosen slot in UTC), with that control right below it, enabled; for a layer with neither, "Could not load. Check your connection." It has no Try again button, because the control is the way to try another and a layer with none has nothing to change. It is announced once, politely, through `LiveRegion` as "Rainfall: No imagery was found for 15 June 2026. Try another.", and not again for the same tiles. Either line goes when a control that changes the tiles is changed (a changed opacity leaves it), when the layer is turned off, and when a tile of the layer loads later (after a slow provider answers, or after a transient failure, on the next pan or zoom): the line disappears and "Rainfall: imagery is showing again." is announced once, politely. A repeated failure shows the status and announces it again. A tile layer some of whose tiles loaded shows none, and neither does one that has not yet waited long enough.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Connection notice                      | A `StatusMessage` of the `info` variant (icon, words and a Dismiss button) in the bottom-centre slot (`MapBanners`, state in `useConnectionNotice` in `packages/web`; an SDK-only host supplies its own from `useOnline()`). It reads the browser's own online signal, through `DevicePreferences.online`, and makes no request to test it. It says "You are offline. Parts of the map may not load." (the catalogue's `announce.offline`) once the signal has held for `CONNECTION_SETTLE_MS` (1.5 s), and "You are back online." after an offline notice, with one Try again when a tile or a layer failed (it retries the map's tiles and every layer in error, then closes). A connection that drops and returns inside the delay says nothing, and a page that opens offline says so after it; the first render says nothing so it matches the server's, which has no signal. It is a polite status that dismisses itself after the `StatusMessage` delay, and nothing is also sent to the announcer, so each change is said once. If it dismisses itself while the device is still offline, the offline state is not said again until the connection changes (an accepted trade-off; a failed layer says so in its own row). Try again covers only failures a connection can fix: tiles and layers whose request failed, not ones that answered wrongly. While it shows, the tile-error banner is left out, because both would say the map could not load.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| `StatusMessage`                        | A toast or banner: an icon, the text, an optional action and a Dismiss button. The text alone is the live region (`role="status"` for info and success, `role="alert"` for errors), so the buttons are never read as part of the message. Errors stay until dismissed; the others dismiss themselves after at least 6 seconds, paused while the pointer is over the message or focus is inside it. When the message goes away while focus is inside it (Dismiss, or an action that ends the condition), focus returns to the element it came from, so a keyboard person keeps their place (WCAG 2.4.3); if that element is gone, cannot take focus (hidden, inert or disabled) or focus came from the page, it goes to the stop the nearest `StatusMessageFocusProvider` supplies, the one stable stop (`MapView` supplies its own map region, so each map restores to itself; a host without a `MapView` supplies its own, and with no provider focus stays where it is). Focus is never moved when it was somewhere else. The message itself never takes focus when it appears (3.2.1, 3.2.2); it is announced, and reached in the normal Tab order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Identify status                        | The line "Looking up what is here" in the bottom-centre slot (`IdentifyStatus`), a `StatusMessage` of the `info` variant (icon, words and a Dismiss button), shown once a tap's or the I key's lookup of raster layers has waited `IDENTIFY_FEEDBACK_MS` (400 ms; `useIdentifyFeedback`) and gone the moment it ends. A lookup that answers sooner shows nothing. Its own status region says it once, politely, when it appears, so a screen reader hears the wait as the eye sees it, and a person who presses I is not left to press it again. The result is said separately, once, when it arrives (`useDataLayers`, through the announcer with `keep`), and the two live regions do not replace each other, however late the answer comes. Dismiss and Escape both end the lookup and say nothing more. A second tap while the line shows keeps it, without restarting the 400 ms. It never shows with the measure, draw or directions tools, which end a lookup when they open. If a later change allows select mode beside it, it stacks above "Selecting on the map".                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
