Skip to content

Latest commit

 

History

History
76 lines (39 loc) · 1.65 KB

Data.MultiPolygon.md

File metadata and controls

76 lines (39 loc) · 1.65 KB

See html formatted version

Data.MultiPolygon class

google.maps.Data.MultiPolygon class

A MultiPolygon geometry contains a number of Data.Polygons.

This class implements Data.Geometry.

Constructor

undefined

Data.MultiPolygon(elements)

Parameters: 

Constructs a Data.MultiPolygon from the given Data.Polygons or arrays of positions.

Methods

undefined

forEachLatLng(callback)

Parameters: 

  • callback:  function(LatLng)

Return Value:  None

undefined

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.

undefined

getAt(n)

Parameters: 

  • n:  number

Return Value:  Data.Polygon

Returns the n-th contained Data.Polygon.

undefined

getLength()

Parameters:  None

Return Value:  number

Returns the number of contained Data.Polygons.

undefined

getType()

Parameters:  None

Return Value:  string

Returns the string "MultiPolygon".