Add basic docs for geom.linestring

This commit is contained in:
Marc Jansen
2015-04-22 21:00:41 +02:00
parent 6b1bccfcdd
commit 144c262a9e

View File

@@ -63,6 +63,7 @@ goog.inherits(ol.geom.LineString, ol.geom.SimpleGeometry);
/**
* Append the passed coordinate to the coordinates of the linestring.
* @param {ol.Coordinate} coordinate Coordinate.
* @api stable
*/
@@ -155,6 +156,7 @@ ol.geom.LineString.prototype.getCoordinateAtM = function(m, opt_extrapolate) {
/**
* Return the coordinates of the linestring.
* @return {Array.<ol.Coordinate>} Coordinates.
* @api stable
*/
@@ -165,6 +167,7 @@ ol.geom.LineString.prototype.getCoordinates = function() {
/**
* Return the length of the linestring on projected plane.
* @return {number} Length (on projected plane).
* @api stable
*/
@@ -225,6 +228,7 @@ ol.geom.LineString.prototype.intersectsExtent = function(extent) {
/**
* Set the coordinates of the linestring.
* @param {Array.<ol.Coordinate>} coordinates Coordinates.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @api stable