google.maps.Data.GeometryCollection
class
A GeometryCollection contains a number of geometry objects. Any LatLng or LatLngLiteral objects are automatically converted to Data.Point geometry objects.
This class implements
Data.Geometry.
| Constructor | |
|---|---|
Data.GeometryCollection |
Data.GeometryCollection(elements)Parameters:
Constructs a Data.GeometryCollection from the given geometry objects or LatLngs. |
| Methods | |
|---|---|
forEachLatLng |
forEachLatLng(callback)Parameters:
Return Value: None
|
getArray |
getArray()Parameters: None
Return Value:
Array<Data.Geometry>Returns an array of the contained geometry objects. A new array is returned each time getArray() is called. |
getAt |
getAt(n)Parameters:
Return Value:
Data.GeometryReturns the n-th contained geometry object. |
getLength |
getLength()Parameters: None
Return Value:
numberReturns the number of contained geometry objects. |
getType |
getType()Parameters: None
Return Value:
stringReturns the string "GeometryCollection". |