Path component.
A Path indicates a route on the map.
const space1 = mapData.getByType('space')[0];const space2 = mapData.getByType('space')[1];const directions = mapView.getDirections(space1, space2);return directions ? <Path coordinate={directions.coordinates} options={{ color: 'blue' }} /> : null; Copy
const space1 = mapData.getByType('space')[0];const space2 = mapData.getByType('space')[1];const directions = mapView.getDirections(space1, space2);return directions ? <Path coordinate={directions.coordinates} options={{ color: 'blue' }} /> : null;
Path component.
A Path indicates a route on the map.