Merge pull request #2996 from bartvde/regularshape-api

Add getter functions for points and angle in ol.style.RegularShape
This commit is contained in:
Bart van den Eijnden
2014-12-15 17:33:54 +01:00

View File

@@ -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. * @return {ol.style.Fill} Fill style.
* @api * @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. * @return {number} Radius.
* @api * @api