Accept string as color input

This commit is contained in:
Alexandre Brault
2015-12-04 17:54:37 -05:00
parent 5c70d37da6
commit 3f16b340fc
3 changed files with 5 additions and 5 deletions

View File

@@ -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