Merge pull request #2996 from bartvde/regularshape-api
Add getter functions for points and angle in ol.style.RegularShape
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user