Skip to main content

MeasureOverlay

The measuring tool's drawing: vertices, the line between them and, for an area, the closed polygon and its fill. Render it inside MapOverlayLayer.

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

Signature​

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

function MeasureOverlay(input: MeasureOverlayProps): JSX.Element | null;

Parameters​

  • { points, mode, hover, testId, }
  • input (MeasureOverlayProps)

Returns​

JSX.Element | null

Remarks​

Segments go the short way across the antimeridian. On a globe each segment follows its great circle, the path the measured distance runs along, and stops at the horizon: a vertex beyond it is not drawn, and the fill and the closing edge of an area are drawn whole only while all of the outline is in sight.

See also​

Source: packages/map/src/host/overlays/MeasureOverlay.tsx:60