google.maps.Data.MultiPolygon class
A MultiPolygon geometry contains a number of Data.Polygons.
This class implements Data.Geometry.
Constructor
Data.MultiPolygon(elements)
Parameters:
- elements: Array<Data.Polygon|Array<Data.LinearRing|Array<LatLng|LatLngLiteral>>>
Constructs a Data.MultiPolygon from the given Data.Polygons or arrays of positions.
Methods
forEachLatLng(callback)
Parameters:
- callback: function(LatLng)
Return Value: None
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(n)
Parameters:
- n: number
Return Value: Data.Polygon
Returns the n-th contained Data.Polygon.
getLength()
Parameters: None
Return Value: number
Returns the number of contained Data.Polygons.
getType()
Parameters: None
Return Value: string
Returns the string "MultiPolygon".