Add getters to ol.style.Circle

This commit is contained in:
Éric Lemoine
2013-12-19 11:36:31 +01:00
parent 1e24ec28be
commit 8fdd178d0a

View File

@@ -62,10 +62,10 @@ goog.inherits(ol.style.Circle, ol.style.Image);
/**
* @inheritDoc
* @return {ol.style.Fill} Fill style.
*/
ol.style.Circle.prototype.getImage = function(pixelRatio) {
return this.canvas_;
ol.style.Circle.prototype.getFill = function() {
return this.fill_;
};
@@ -77,6 +77,30 @@ ol.style.Circle.prototype.getHitDetectionImage = function(pixelRatio) {
};
/**
* @inheritDoc
*/
ol.style.Circle.prototype.getImage = function(pixelRatio) {
return this.canvas_;
};
/**
* @return {number} Radius.
*/
ol.style.Circle.prototype.getRadius = function() {
return this.radius_;
};
/**
* @return {ol.style.Stroke} Stroke style.
*/
ol.style.Circle.prototype.getStroke = function() {
return this.stroke_;
};
/**
* @inheritDoc
*/