GeoPolyline constructor

GeoPolyline(
  1. List<GeoCoordinates> vertices
)

Constructs a GeoPolyline from the provided vertices.

Throws an InstantiationError if the number of vertices is less than two.

  • vertices List of vertices representing the polyline.

Throws InstantiationException. Instantiation error.

Implementation

factory GeoPolyline(List<GeoCoordinates> vertices) => $prototype.$init(vertices);