new LineString
Parameters:
| Name | Type | Description |
|---|---|---|
coordinates |
ol.geom.RawLineString | Coordinates. |
layout |
ol.geom.GeometryLayout | string | Layout. |
- Source:
- linestring.js, line 25
Extends
Members
-
getType
Stability: experimental -
- Inherited From:
- Source:
- geometry.js, line 148
Methods
-
appendCoordinate
Stability: not documented -
Parameters:
Name Type Description coordinateol.Coordinate Coordinate.
- Source:
- linestring.js, line 63
-
dispatchChangeEvent
Stability: experimental -
Dispatches a
changeevent. Register a listener for this event to get notified of changes.- Inherited From:
- Source:
- observable.js, line 39
Fires:
- event:change
-
getClosestPoint
Stability: experimental -
Parameters:
Name Type Argument Description pointol.Coordinate Point.
closestPointol.Coordinate <optional>
Closest point.
- Inherited From:
- Source:
- geometry.js, line 103
Returns:
Closest point.
- Type
- ol.Coordinate
-
getCoordinateAtM
Stability: not documented -
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.Parameters:
Name Type Argument Description mnumber M.
extrapolateboolean <optional>
Extrapolate.
- Source:
- linestring.js, line 117
Returns:
Coordinate.
- Type
- ol.Coordinate
-
getCoordinates
Stability: experimental -
- Source:
- linestring.js, line 132
Returns:
Coordinates.
-
getFirstCoordinate
Stability: not documented -
- Inherited From:
- Source:
- simplegeometry.js, line 105
Returns:
First coordinate.
- Type
- ol.Coordinate
-
getLastCoordinate
Stability: not documented -
- Inherited From:
- Source:
- simplegeometry.js, line 121
Returns:
Last point.
- Type
- ol.Coordinate
-
getLayout
Stability: experimental -
- Inherited From:
- Source:
- simplegeometry.js, line 130
Returns:
Layout.
-
getLength
Stability: experimental -
- Source:
- linestring.js, line 142
Returns:
Length.
- Type
- number
-
on
Stability: experimental -
Listen for a certain type of event.
Parameters:
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
The object to use as
thisinlistener.- Inherited From:
- Source:
- observable.js, line 62
Returns:
Unique key for the listener.
- Type
- goog.events.Key
-
once
Stability: experimental -
Listen once for a certain type of event.
Parameters:
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
The object to use as
thisinlistener.- Inherited From:
- Source:
- observable.js, line 75
Returns:
Unique key for the listener.
- Type
- goog.events.Key
-
setCoordinates
Stability: experimental -
Parameters:
Name Type Argument Description coordinatesol.geom.RawLineString Coordinates.
layoutol.geom.GeometryLayout <optional>
Layout.
- Source:
- linestring.js, line 191
-
un
Stability: experimental -
Unlisten for a certain type of event.
Parameters:
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
The object to use as
thisinlistener.- Inherited From:
- Source:
- observable.js, line 87
-
unByKey
Stability: experimental -
Removes an event listener using the key returned by
on()oronce().Parameters:
Name Type Description keygoog.events.Key Key.
- Inherited From:
- Source:
- observable.js, line 97
OpenLayers 3