Clear canvas with opacity 1

This commit is contained in:
Tim Schaub
2013-01-17 15:30:16 -07:00
parent d6de79b2bd
commit fe56b15c52

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 = backgroundColor.a;
context.globalAlpha = 1;
context.fillRect(0, 0, size.width, size.height);
goog.array.forEach(frameState.layersArray, function(layer) {