Skip to main content

MapReadout

The bottom-start readout: the scale bar with the cursor coordinates and zoom level under it. One floating element, for the layout collision test, and a landmark named "Map scale" so its content is inside a landmark. Reads the zoom with useMap() and the layout with useChromeLayout(), so it must sit inside the map context and a MapChrome.

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

Signature​

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

function MapReadout(input: MapReadoutProps): JSX.Element;

Parameters​

  • { units, latlng, showZoom, onCursorLeave, }
  • input (MapReadoutProps)

Returns​

JSX.Element

See also​

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