Takes an array of MappedinNode instances and draws an Path with path segments on each map corresponding to the nodes on that map.
const departure = mapView.venue.locations.find((l) => l.name === "Apple")!;
const destination = mapView.venue.locations.find((l) => l.name === "Cleo")!;
const directions = departure.directionsTo(destination);
// Draw the above directions as a path on the map
mapView.Paths.add(directions.path);
A MappedinNode array, probably from a MappedinDirections instance.
Optional
options: TPathOptionsRemove a Path from all maps it exists on.
const path = mapView.Paths.add(nodes);
...
// The path is no longer needed
mapView.Paths.remove(path);
Remove all Path instances from all maps.
API to add and remove paths from maps. See also Journey.