Function Navigation

  • Navigation component.

    Navigation draws a route on the map with pre-defined Markers for connections and the start and end points.

    Parameters

    Returns null

    const space1 = mapData.getByType('space')[0];
    const space2 = mapData.getByType('space')[1];
    const directions = mapView.getDirections(space1, space2);

    return directions ? <Navigation directions={directions} /> : null;
MMNEPVFCICPMFPCPTTAAATR