Added getter for Color property to ol.style.Icon and updated test
This commit is contained in:
committed by
Andreas Hocevar
parent
b87564335e
commit
e7e425c288
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user