Skip to main content

announceCatalogueChange

One message for one change to the catalogue, in a fixed order: the layers that were turned off, the layers of the link that are not available, how many definitions could not be shown, what a refresh added and removed, and that the first list is empty. Null when none of them applies. A transition is one message, so the live region speaks the whole change in one go.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { announceCatalogueChange } from "@mapcairn/core";

function announceCatalogueChange(change: CatalogueChange): Message | null;

Parameters​

  • change (CatalogueChange)

Returns​

Message | null

See also​

Source: packages/core/src/announce/announce.ts:280