Accept string as color input
This commit is contained in:
@@ -129,7 +129,8 @@ ol.style.Icon = function(opt_options) {
|
||||
/**
|
||||
* @type {ol.Color}
|
||||
*/
|
||||
var color = options.color !== undefined ? options.color : null;
|
||||
var color = options.color !== undefined ? ol.color.asArray(options.color) :
|
||||
null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user