Classes
class TOval
This is a map overlay that draws oval shape on the map.
| Constructor | Description |
|---|---|
| TOval(center:TLatLon, drawStyle: TDrawStyle, radiusX:Number, radiusY?:Number) | New a TOval object. Parameters radiusX, radiusY are defined as the distance to the oval center position in X, Y axes (unit is meters). If parameter radiusY is not given or given the same value to the radiusX, you can draw a circle here. |
Methods
| Method | Return Value | Description |
|---|---|---|
| getDrawStyle() | TDrawStyle | Get the TDrawStyle of the TOval. |
| setDrawStyle(drawStyle: TDrawStyle) | None | Set drawstyle of the oval. The JSONObject includes color, weight, opacity values. |
| getRadiusX() | Double | Return the oval radius in X axis (in meters). |
| getRadiusY() | Double | Return the oval radius in Y axis (in meters). If create a circle, the radiusY is equal to the radiusX. |
| setRadius(radiusX: Number, radiusY?: Number) | None | Set the radiusX, radiusY of the oval (in meters).If parameter radiusY is not given or given the same value to the radiusX, you can draw a circle here. |
| getCenter() | TLatLon | Get the center of the oval. |
| setCenter(center: TLatLon) | None | Set the center of the oval. |
| getBound() | TViewPort | Get the bound of the oval in the default zoom level (0). |