Merge pull request #6132 from tohu12/getColor_to_Icon

Add getter for color property to ol.style.Icon
This commit is contained in:
Andreas Hocevar
2016-11-16 13:54:24 +01:00
committed by GitHub
2 changed files with 12 additions and 2 deletions

View File

@@ -259,6 +259,16 @@ ol.style.Icon.prototype.getAnchor = function() {
};
/**
* Get the icon color.
* @return {ol.Color} Color.
* @api
*/
ol.style.Icon.prototype.getColor = function() {
return this.color_;
};
/**
* Get the image icon.
* @param {number} pixelRatio Pixel ratio.