Skip to main content

DirectionsOverlayProps

Props for DirectionsOverlay.

This is an interface exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import type { DirectionsOverlayProps } from "@mapcairn/map";

interface DirectionsOverlayProps

Properties​

showCrosshair​

readonly showCrosshair: boolean;

Draws a crosshair where "Add stop at map centre" will put a stop, which is the middle of the part of the map the panel leaves free.

stops​

readonly stops: readonly DirectionStop[];

The stops, in order. Each is drawn as a lettered disc.

testId​

readonly testId?: string;

Sets data-testid on the overlay.

See also​

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