Added getter for Color property to ol.style.Icon and updated test

This commit is contained in:
Tomas Hulek
2016-11-15 13:01:34 +01:00
committed by Andreas Hocevar
parent b87564335e
commit e7e425c288
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.