Methods

  • Adds a path (Path) to the map.

    Parameters

    Returns Promise<Path>

    // Add a red path to the map
    map.Paths.add(coordinate, { color: '#ff0000' });
  • Removes a specific path (Path) from the map.

    Parameters

    • path: Path

      The path to be removed.

    Returns void

    map.Paths.remove(path);
    
  • Removes all paths (Path) from the map.

    Returns Path[]

    map.Paths.removeAll();