Skip to content

Latest commit

 

History

History
76 lines (39 loc) · 1.78 KB

Data.GeometryCollection.md

File metadata and controls

76 lines (39 loc) · 1.78 KB

See html formatted version

Data.GeometryCollection class

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

undefined

Data.GeometryCollection(elements)

Parameters: 

Constructs a Data.GeometryCollection from the given geometry objects or LatLngs.

Methods

undefined

forEachLatLng(callback)

Parameters: 

  • callback:  function(LatLng)

Return Value:  None

undefined

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.

undefined

getAt(n)

Parameters: 

  • n:  number

Return Value:  Data.Geometry

Returns the n-th contained geometry object.

undefined

getLength()

Parameters:  None

Return Value:  number

Returns the number of contained geometry objects.

undefined

getType()

Parameters:  None

Return Value:  string

Returns the string "GeometryCollection".