google.maps.Data.MultiPoint class
A MultiPoint geometry contains a number of LatLngs.
This class implements Data.Geometry.
Constructor
Data.MultiPoint(elements)
Parameters:
- elements: Array<LatLng|LatLngLiteral>
Constructs a Data.MultiPoint from the given LatLngs or LatLngLiterals.
Methods
forEachLatLng(callback)
Parameters:
- callback: function(LatLng)
Return Value: None
getArray()
Parameters: None
Return Value: Array<LatLng>
Returns an array of the contained LatLngs. A new array is returned each time getArray() is called.
getAt(n)
Parameters:
- n: number
Return Value: LatLng
Returns the n-th contained LatLng.
getLength()
Parameters: None
Return Value: number
Returns the number of contained LatLngs.
getType()
Parameters: None
Return Value: string
Returns the string "MultiPoint".