Standardizing color ranges (see #129)

This commit is contained in:
Tim Schaub
2013-01-17 14:19:50 -07:00
parent b36eab1dfa
commit 10672ad303
6 changed files with 84 additions and 8 deletions

View File

@@ -138,7 +138,7 @@ ol.renderer.canvas.Map.prototype.renderFrame = function(frameState) {
backgroundColor.r.toFixed(0) + ',' +
backgroundColor.g.toFixed(0) + ',' +
backgroundColor.b.toFixed(0) + ')';
context.globalAlpha = 1;
context.globalAlpha = backgroundColor.a;
context.fillRect(0, 0, size.width, size.height);
goog.array.forEach(frameState.layersArray, function(layer) {