Skip to main content

CursorCoordinates

The position under the pointer and the zoom level, as plain muted text with tabular figures. It is not a live region: the settled zoom is already announced after each zoom, so a change here is not spoken.

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

Signature​

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

function CursorCoordinates(input: CursorCoordinatesProps): JSX.Element | null;

Parameters​

  • { latlng, zoom }
  • input (CursorCoordinatesProps)

Returns​

JSX.Element | null

Remarks​

The zoom is drawn as "z 12.4", which is aria-hidden and not selectable, and carried as visually hidden text ("Zoom 12.4", after a comma when a position comes first), so a screen reader and a copy of the text read it once and in full, in the order the eye sees it.

See also​

Source: packages/map/src/chrome/MapReadout/MapReadout.tsx:202