Articles and Tutorials
GSCircle
GSCircle represents a circle based on a center point and a radius.| Constructor Summary | |
| GSCircle (<Object> params) Constructs a new GSCircle that is initialized with the properties provided in the params associative array. | |
| Method Summary | |
| GSBounds | getBounds() Gets the minimum bounding box necessary to contain this map feature |
| void | setCenter(<GSPoint> center) Sets the center coordinate of this circle. |
| void | setRadius(<integer> radius) Sets the radius of this circle. |
| Field Detail |
graphicsEl
Object graphicsEl| Constructor Detail |
GSCircle
GSCircle(<Object> params)- Constructs a new GSCircle that is initialized with the properties provided in the params associative array.
-
-
- center - the coordinate of the circle center
- radius - the radius of the circle in metres
- style - an associative array containing name-value pairs for each style property to set, see GSVectorGraphics.setStyle() for all supported properties
params - an associative array of named arguments used to initialize this shape, the following parameters may be specified:
Parameters: -
| Method Detail |
getBounds
GSBounds getBounds()- Gets the minimum bounding box necessary to contain this map feature
-
- the bounds of this map feature
Returns:
setCenter
void setCenter(<GSPoint> center)- Sets the center coordinate of this circle.
-
- center - the center of this circle expressed as an NZMG coordinate
Parameters:
setRadius
void setRadius(<integer> radius)- Sets the radius of this circle.
-
- radius - the radius of this circle in metres
Parameters:

