add

open fun add(point: LatLng): PolylineOptions

Adds a vertex to the end of the polyline being built.

Return

This PolylineOptions object with the given point on the end.

Parameters

point

LatLng point to be added to polyline geometry.


open fun add(points: Array<LatLng>): PolylineOptions

Adds vertices to the end of the polyline being built.

Return

This PolylineOptions object with the given point on the end.

Parameters

points

LatLng points defining the polyline geometry.