GSPolyline
GSPolyline represents a vector-based polyline feature. A polyline defines a set of connected straight line segments. Typically 'polyline' elements define open shapes.
| Constructor Summary |
GSPolyline (<Object> params) Constructs a new GSPolyline 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 | setPoints(<Array> points) Sets the list of NZMG points that describe this polyline. |
Object
graphicsEl GSPolyline(<Object> params)
Constructs a new GSPolyline that is initialized with the properties provided in the params associative array.
-
-
- points - the NZMG coordinates describing this polyline specified as an array of GSPoint instances
- 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:
GSBounds
getBounds()
Gets the minimum bounding box necessary to contain this map feature
-
the bounds of this map feature
Returns:
void
setPoints(<Array> points)
Sets the list of NZMG points that describe this polyline. All coordinate values are specified using the GSPoint class
-
points - the points to set. If an odd number of coordinates is provided the element will not be rendered
Parameters: