Merge pull request #1985 from fredj/named-color

Handle ol.color.ENABLE_NAMED_COLORS = false
This commit is contained in:
Frédéric Junod
2014-04-16 16:28:26 +02:00
2 changed files with 15 additions and 13 deletions

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];
/**