Add ol.geom.LineString#getCoordinateAtM
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
@exportSymbol ol.geom.LineString
|
@exportSymbol ol.geom.LineString
|
||||||
@exportProperty ol.geom.LineString.prototype.clone
|
@exportProperty ol.geom.LineString.prototype.clone
|
||||||
|
@exportProperty ol.geom.LineString.prototype.getCoordinateAtM
|
||||||
@exportProperty ol.geom.LineString.prototype.getCoordinates
|
@exportProperty ol.geom.LineString.prototype.getCoordinates
|
||||||
@exportProperty ol.geom.LineString.prototype.getLength
|
@exportProperty ol.geom.LineString.prototype.getLength
|
||||||
@exportProperty ol.geom.LineString.prototype.getType
|
@exportProperty ol.geom.LineString.prototype.getType
|
||||||
|
|||||||
@@ -80,6 +80,18 @@ ol.geom.LineString.prototype.closestPointXY =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} m M.
|
||||||
|
* @param {boolean=} opt_extrapolate Extrapolate.
|
||||||
|
* @return {ol.Coordinate} Coordinate.
|
||||||
|
*/
|
||||||
|
ol.geom.LineString.prototype.getCoordinateAtM = function(m, opt_extrapolate) {
|
||||||
|
var extrapolate = goog.isDef(opt_extrapolate) ? opt_extrapolate : false;
|
||||||
|
return ol.geom.flat.lineStringCoordinateAtM(this.flatCoordinates, 0,
|
||||||
|
this.flatCoordinates.length, this.stride, this.layout, m, extrapolate);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.geom.RawLineString} Coordinates.
|
* @return {ol.geom.RawLineString} Coordinates.
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
|
|||||||
Reference in New Issue
Block a user