Skip to main content

announceIdentified

The one message for a tap that asked raster layers what is there, said once when every layer has answered or run out of time. Several features say a list opened, and one feature says nothing because its card takes focus. Nothing found says so, unless every layer failed, when there is nothing to report but the failure. Layers that did not answer are named, and a tap that could have asked more layers than it did says how many it asked. It is assertive only when every layer asked failed, because then the person has learned nothing. Null when there is nothing to say, including when no layer was asked.

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

Signature​

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

function announceIdentified(input: IdentifyReport): IdentifyAnnouncement | null;

Parameters​

  • { found, asked, available, failed, }
  • input (IdentifyReport)

Returns​

IdentifyAnnouncement | null

See also​

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