Skip to main content

IdentifyStatus

The line a host shows in the bottom-centre slot while a tap's lookup is taking time ("Looking up what is here"): show it when useIdentifyFeedback(layers.identifying) is true, and pass layers.cancelIdentify as onCancel.

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

Signature​

import { IdentifyStatus } from "@mapcairn/map";

function IdentifyStatus(input: IdentifyStatusProps): JSX.Element;

Parameters​

  • { onCancel }
  • input (IdentifyStatusProps)

Returns​

JSX.Element

Remarks​

It is a StatusMessage, so it says itself once, politely, when it appears at the delay, and the page's content stays inside a live region. The lookup's result is said separately when it arrives, through the announcer with keep, so the two never replace each other. Dismissing the line ends the lookup, the same as Escape.

See also​

Source: packages/map/src/layers/IdentifyStatus.tsx:32