Don't use a named color for defaultFillStyle

Named color support is optional (see ol.color.ENABLE_NAMED_COLORS)
This commit is contained in:
Frederic Junod
2014-04-15 16:57:49 +02:00
parent 2a0026bed3
commit 1da879ef06

View File

@@ -1,7 +1,5 @@
goog.provide('ol.render.canvas');
goog.require('ol.color');
/**
* @typedef {{fillStyle: string}}
@@ -39,7 +37,7 @@ ol.render.canvas.defaultFont = '10px sans-serif';
* @const
* @type {ol.Color}
*/
ol.render.canvas.defaultFillStyle = ol.color.fromString('black');
ol.render.canvas.defaultFillStyle = [0, 0, 0, 1];
/**