Properly set transform before filling background (closes #128)

Order of args is m11, m12, m21, m22, dx, dy
This commit is contained in:
Tim Schaub
2013-01-17 13:40:00 -07:00
parent 141e5aa9fc
commit b36eab1dfa

View File

@@ -131,9 +131,8 @@ ol.renderer.canvas.Map.prototype.renderFrame = function(frameState) {
this.canvasSize_ = size;
}
// FIXME filling the background doesn't seem to work
var context = this.context_;
context.setTransform(1, 0, 1, 0, 0, 0);
context.setTransform(1, 0, 0, 1, 0, 0);
var backgroundColor = frameState.backgroundColor;
context.fillStyle = 'rgb(' +
backgroundColor.r.toFixed(0) + ',' +