ol.geom.polygon documentation update: linear rings rules

This commit is contained in:
Quentin Lampin
2017-01-04 15:48:04 +01:00
parent f2dd6f0395
commit b44be59938

View File

@@ -26,8 +26,12 @@ goog.require('ol.math');
*
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {Array.<Array.<ol.Coordinate>>} coordinates Coordinates of the
* vertices of the polygon where the first coordinate and the last are equivalent.
* @param {Array.<Array.<ol.Coordinate>>} coordinates Array of linear
* rings that define the polygon. The first linear ring of the array
* defines the outer-boundary or surface of the polygon. Each subsequent
* linear ring defines a hole in the surface of the polygon. A linear ring
* is an array of vertices' coordinates where the first coordinate and the
* last are equivalent.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @api stable
*/