Coordinates.
Optional
opt_layout: GeometryLayoutLayout.
Multi-linestring geometry.
stable
Append the passed linestring to the multilinestring.
LineString.
stable
stable
Make a complete copy of the geometry.
Clone.
stable
Return the closest point of the geometry to the passed point as coordinate.
Point.
Optional
opt_closestPoint: CoordinateClosest point.
Closest point.
stable
Returns the coordinate at m
using linear interpolation, or null
if no
such coordinate exists.
opt_extrapolate
controls extrapolation beyond the range of Ms in the
MultiLineString. If opt_extrapolate
is true
then Ms less than the first
M will return the first coordinate and Ms greater than the last M will
return the last coordinate.
opt_interpolate
controls interpolation between consecutive LineStrings
within the MultiLineString. If opt_interpolate
is true
the coordinates
will be linearly interpolated between the last coordinate of one LineString
and the first coordinate of the next LineString. If opt_interpolate
is
false
then the function will return null
for Ms falling between
LineStrings.
M.
Optional
opt_extrapolate: booleanExtrapolate. Default is false
.
Optional
opt_interpolate: booleanInterpolate. Default is false
.
Coordinate.
stable
Return the coordinates of the multilinestring.
Coordinates.
stable
Return the first coordinate of the geometry.
First coordinate.
stable
Return the last coordinate of the geometry.
Last point.
stable
Return the layout of the geometry.
Layout.
stable
Return the linestring at the specified index.
Index.
LineString.
stable
Return the linestrings of this multilinestring.
LineStrings.
stable
Get the type of this geometry.
Geometry type.
Returns true if this geometry includes the specified coordinate. If the coordinate is on the boundary of the geometry, returns false.
Coordinate.
Contains coordinate.
stable
Listen for a certain type of event.
The event type or array of event types.
The listener function.
Optional
opt_this: ObjectThe object to use as this
in listener
.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
stable
Listen once for a certain type of event.
The event type or array of event types.
The listener function.
Optional
opt_this: ObjectThe object to use as this
in listener
.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
stable
Rotate the geometry around a given coordinate. This modifies the geometry coordinates in place.
Rotation angle in radians.
The rotation center.
Scale the geometry (with an optional origin). This modifies the geometry coordinates in place.
The scaling factor in the x-direction.
Optional
opt_sy: numberThe scaling factor in the y-direction (defaults to sx).
Optional
opt_anchor: CoordinateThe scale origin (defaults to the center of the geometry extent).
Set the coordinates of the multilinestring.
Coordinates.
Optional
opt_layout: GeometryLayoutLayout.
stable
Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Values.
Optional
opt_silent: booleanUpdate without triggering an event.
stable
Create a simplified version of this geometry. For linestrings, this uses the the Douglas Peucker algorithm. For polygons, a quantization-based simplification is used to preserve topology.
The tolerance distance for simplification.
A new, simplified version of the original geometry.
Transform each coordinate of the geometry from one coordinate reference
system to another. The geometry is modified in place.
For example, a line will be transformed to a line and a circle to a circle.
If you do not want the geometry modified in place, first clone()
it and
then use this function on the clone.
The current projection. Can be a string identifier or a ol.proj.Projection object.
The desired projection. Can be a string identifier or a ol.proj.Projection object.
This geometry. Note that original geometry is modified in place.
stable
Removes an event listener using the key returned by on()
or once()
.
Note that using the ol.Observable.unByKey static function is to
be preferred.
stable
Static
unGenerated using TypeDoc
Classdesc
Multi-linestring geometry.
Param: coordinates
Coordinates.
Param: opt_layout
Layout.
Api
stable