Support minPointsPerRing and default to 3

This commit is contained in:
Tim Schaub
2014-03-05 12:58:03 -07:00
parent 30865c2a42
commit a18593ee10
2 changed files with 13 additions and 1 deletions

View File

@@ -415,6 +415,8 @@
* drawing finish (default is 12).
* @property {ol.geom.GeometryType} type Drawing type ('Point', 'LineString',
* 'Polygon', 'MultiPoint', 'MultiLineString', or 'MultiPolygon').
* @property {number|undefined} minPointsPerRing The number of points that must
* be drawn before a polygon ring can be finished (default is 3).
* @property {ol.style.Style|Array.<ol.style.Style>|ol.feature.StyleFunction|undefined} style
* Style for sketch features.
* @todo stability experimental