Skip to main content

MapDirections

Draws a route as a line with a white casing, or a travel-time area as an outlined, tinted shape, through the map adapter's shape layers, and fits the map to it, clear of the sheet or side panel. Renders nothing; put it inside MapView. The engine draws the shapes, so they stay sharp while the map moves and come back after a basemap swap.

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

Signature​

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

function MapDirections(input: MapDirectionsProps): null;

Parameters​

  • { result }
  • input (MapDirectionsProps)

Returns​

null

See also​

Source: packages/map/src/tools/Directions/MapDirections.tsx:48