Skip to main content

DirectionsOverlay

The stops of a set of directions, drawn as lettered discs, and the crosshair that shows where the next stop goes when it is added at the map centre. Render it inside MapOverlayLayer. Like every overlay it is a picture of state the panel gives in words, and the letters mean it never depends on colour.

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

Signature​

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

function DirectionsOverlay(input: DirectionsOverlayProps): JSX.Element | null;

Parameters​

  • { stops, showCrosshair, testId, }
  • input (DirectionsOverlayProps)

Returns​

JSX.Element | null

See also​

Source: packages/map/src/tools/Directions/DirectionsOverlay.tsx:32