new MultiLineString(coordinates, opt_layout, opt_ends)
| Name | Type | Description |
|---|---|---|
coordinates |
Array.<(Array.<module:ol/coordinate~Coordinate>|module:ol/geom~MultiLineString)> | Array.<number> |
Coordinates or LineString geometries. (For internal use, flat coordinates in
combination with |
layout |
module:ol/geom/GeometryLayout |
Layout. |
ends |
Array.<number> |
Flat coordinate ends for internal use. |
Methods
-
appendLineString(lineString)
geom/MultiLineString.js, line 82 -
Append the passed linestring to the multilinestring.
Name Type Description lineStringmodule:ol/geom/LineString~LineString LineString.
-
Make a complete copy of the geometry.
Returns:
Clone.
-
getCoordinateAtM(m, opt_extrapolate, opt_interpolate){module:ol/coordinate~Coordinate}
geom/MultiLineString.js, line 141 -
Returns the coordinate at
musing linear interpolation, ornullif no such coordinate exists.opt_extrapolatecontrols extrapolation beyond the range of Ms in the MultiLineString. Ifopt_extrapolateistruethen Ms less than the first M will return the first coordinate and Ms greater than the last M will return the last coordinate.opt_interpolatecontrols interpolation between consecutive LineStrings within the MultiLineString. Ifopt_interpolateistruethe coordinates will be linearly interpolated between the last coordinate of one LineString and the first coordinate of the next LineString. Ifopt_interpolateisfalsethen the function will returnnullfor Ms falling between LineStrings.Name Type Description mnumber M.
extrapolateboolean Extrapolate. Default is
false.interpolateboolean Interpolate. Default is
false.Returns:
Coordinate.
-
Return the coordinates of the multilinestring.
Returns:
Coordinates.
-
Return the linestring at the specified index.
Name Type Description indexnumber Index.
Returns:
LineString.
-
Return the linestrings of this multilinestring.
Returns:
LineStrings.
-
getType()
geom/MultiLineString.js, line 241 -
-
intersectsExtent()
geom/MultiLineString.js, line 249 -
-
setCoordinates(coordinates, opt_layout)
geom/MultiLineString.js, line 261 -
Set the coordinates of the multilinestring.
Name Type Description coordinatesArray.<Array.<module:ol/coordinate~Coordinate>> Coordinates.
layoutmodule:ol/geom/GeometryLayout Layout.
OpenLayers