From 144c262a9eb301b309abd0c6bac4b1cd2b6ab275 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Wed, 22 Apr 2015 21:00:41 +0200 Subject: [PATCH] Add basic docs for geom.linestring --- src/ol/geom/linestring.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ol/geom/linestring.js b/src/ol/geom/linestring.js index d9c35fdb87..1ec7790088 100644 --- a/src/ol/geom/linestring.js +++ b/src/ol/geom/linestring.js @@ -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.} 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.} coordinates Coordinates. * @param {ol.geom.GeometryLayout=} opt_layout Layout. * @api stable