Skip to main content

CentreCrosshair

A small crosshair at the centre of the map, shown while measuring so "Add point at map centre" has a visible target. Render it inside MapOverlayLayer only while measuring.

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

Signature​

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

function CentreCrosshair(input: CentreCrosshairProps): JSX.Element | null;

Parameters​

  • { at, testId }
  • input (CentreCrosshairProps)

Returns​

JSX.Element | null

See also​

Source: packages/map/src/host/overlays/CentreCrosshair.tsx:27