class TPolyline

This is a map overlay that draws a polyline on the map, using the vector drawing facilities of the browser if they are available.

Constructor Description
TPolyline(points: Array<TLatLon>, drawStyle: TDrawStyle) Constructs a new TPolyline object. The points should be an array of TLatLon.

Methods

Method Return Value Description
getDrawStyle() TDrawStyle Get the TDrawStyle of the TPolyline.
setDrawStyle(drawStyle: TDrawStyle) None Set drawstyle of the polylines. The JSONObject includes color, weight, opacity values.
clone() TPolyline Return the clone of the TPolyline object.
getBound() TViewPort Get the bound of the polyline in the default zoom level (0).
getPoints() Array<TLatLon> Return the points of TPolyline.