google.maps.Data.MultiPolygon
class
A MultiPolygon geometry contains a number of Data.Polygons.
This class implements
Data.Geometry.
| Constructor | |
|---|---|
Data.MultiPolygon |
Data.MultiPolygon(elements)Parameters:
Constructs a Data.MultiPolygon from the given Data.Polygons or arrays of positions. |
| Methods | |
|---|---|
forEachLatLng |
forEachLatLng(callback)Parameters:
Return Value: None
|
getArray |
getArray()Parameters: None
Return Value:
Array<Data.Polygon>Returns an array of the contained Data.Polygons. A new array is returned each time getArray() is called. |
getAt |
getAt(n)Parameters:
Return Value:
Data.PolygonReturns the n-th contained Data.Polygon. |
getLength |
getLength()Parameters: None
Return Value:
numberReturns the number of contained Data.Polygons. |
getType |
getType()Parameters: None
Return Value:
stringReturns the string "MultiPolygon". |