diff --git a/src/ol/style/regularshapestyle.js b/src/ol/style/regularshapestyle.js index bf50f3bad3..cde61ff429 100644 --- a/src/ol/style/regularshapestyle.js +++ b/src/ol/style/regularshapestyle.js @@ -151,6 +151,15 @@ ol.style.RegularShape.prototype.getAnchor = function() { }; +/** + * @return {number} Shape's rotation in radians. + * @api + */ +ol.style.RegularShape.prototype.getAngle = function() { + return this.angle_; +}; + + /** * @return {ol.style.Fill} Fill style. * @api @@ -218,6 +227,15 @@ ol.style.RegularShape.prototype.getHitDetectionOrigin = function() { }; +/** + * @return {number} Number of points for stars and regular polygons. + * @api + */ +ol.style.RegularShape.prototype.getPoints = function() { + return this.points_; +}; + + /** * @return {number} Radius. * @api