Classes
class TPolygon
This is a map overlay that draws a closed polygon on the map, using the vector drawing facilities of the browser if they are available.
| Constructor | Description |
|---|---|
| TPolygon(points: Array<TLatLon>, drawStyle: TDrawStyle) | Constructs a new TPolygon object. The points should be an array of TLatLon. |
Methods
| Method | Return Value | Description |
|---|---|---|
| getDrawStyle() | TDrawStyle | Get the TDrawStyle of the TPolygon. |
| setDrawStyle(drawStyle: TDrawStyle) | None | Set drawstyle of the polygon. The JSONObject includes color, weight, opacity values. |
| getBound() | TViewPort | Get the bound of the polygon in the default zoom level (0). |
| clone() | TPolygon | Return the clone of the TPolygon object. |
| getPoints() | Array<TLatLon> | Get points of TPolygon. |