From 1252867f6950823a84edc0b177896166e16a4cb9 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Wed, 22 Apr 2015 21:01:37 +0200 Subject: [PATCH] Add basic docs for geom.polygon --- src/ol/geom/polygon.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ol/geom/polygon.js b/src/ol/geom/polygon.js index 627910b333..4a8d3b6ac8 100644 --- a/src/ol/geom/polygon.js +++ b/src/ol/geom/polygon.js @@ -84,6 +84,7 @@ goog.inherits(ol.geom.Polygon, ol.geom.SimpleGeometry); /** + * Append the passed linear ring to this polygon. * @param {ol.geom.LinearRing} linearRing Linear ring. * @api stable */ @@ -143,6 +144,7 @@ ol.geom.Polygon.prototype.containsXY = function(x, y) { /** + * Return the area of the polygon on projected plane. * @return {number} Area (on projected plane). * @api stable */ @@ -204,6 +206,7 @@ ol.geom.Polygon.prototype.getFlatInteriorPoint = function() { /** + * Return an interior point of the polygon. * @return {ol.geom.Point} Interior point. * @api stable */ @@ -248,6 +251,7 @@ ol.geom.Polygon.prototype.getLinearRing = function(index) { /** + * Return the linear rings of the polygon. * @return {Array.} Linear rings. * @api stable */ @@ -328,6 +332,7 @@ ol.geom.Polygon.prototype.intersectsExtent = function(extent) { /** + * Set the coordinates of the polygon. * @param {Array.>} coordinates Coordinates. * @param {ol.geom.GeometryLayout=} opt_layout Layout. * @api stable