Navigation component.
Navigation draws a route on the map with pre-defined Markers for connections and the start and end points.
const space1 = mapData.getByType('space')[0];const space2 = mapData.getByType('space')[1];const directions = mapView.getDirections(space1, space2);return directions ? <Navigation directions={directions} /> : null; Copy
const space1 = mapData.getByType('space')[0];const space2 = mapData.getByType('space')[1];const directions = mapView.getDirections(space1, space2);return directions ? <Navigation directions={directions} /> : null;
Navigation component.
Navigation draws a route on the map with pre-defined Markers for connections and the start and end points.