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