From 8fdd178d0ad3775f42335189496a15077fab7678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 19 Dec 2013 11:36:31 +0100 Subject: [PATCH] Add getters to ol.style.Circle --- src/ol/style/circlestyle.js | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/ol/style/circlestyle.js b/src/ol/style/circlestyle.js index 9f5147a02b..1b1aae667d 100644 --- a/src/ol/style/circlestyle.js +++ b/src/ol/style/circlestyle.js @@ -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 */