Don't use a named color for defaultFillStyle
Named color support is optional (see ol.color.ENABLE_NAMED_COLORS)
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
goog.provide('ol.render.canvas');
|
goog.provide('ol.render.canvas');
|
||||||
|
|
||||||
goog.require('ol.color');
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{fillStyle: string}}
|
* @typedef {{fillStyle: string}}
|
||||||
@@ -39,7 +37,7 @@ ol.render.canvas.defaultFont = '10px sans-serif';
|
|||||||
* @const
|
* @const
|
||||||
* @type {ol.Color}
|
* @type {ol.Color}
|
||||||
*/
|
*/
|
||||||
ol.render.canvas.defaultFillStyle = ol.color.fromString('black');
|
ol.render.canvas.defaultFillStyle = [0, 0, 0, 1];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user