# 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

```ts
import { MapDirections } from "@mapcairn/map";
 
function MapDirections(input: MapDirectionsProps): null;
```

## Parameters

- `{ result }`
- `input` (`MapDirectionsProps`)

## Returns

`null`

## See also

- [`MapDirectionsProps`](https://docs.mapcairn.com/api/map/MapDirectionsProps.md)

Source: [packages/map/src/tools/Directions/MapDirections.tsx:48](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/Directions/MapDirections.tsx#L48)
