Adds a path (Path) to the map.
Array of coordinates (Coordinate) to form the path.
Optional
Optional additional option
// Add a red path to the mapmap.Paths.add(coordinate, { color: '#ff0000' }); Copy
// Add a red path to the mapmap.Paths.add(coordinate, { color: '#ff0000' });
Removes a specific path (Path) from the map.
The path to be removed.
map.Paths.remove(path); Copy
map.Paths.remove(path);
Removes all paths (Path) from the map.
map.Paths.removeAll(); Copy
map.Paths.removeAll();
Adds a path (Path) to the map.