Properly set transform before filling background (closes #128)
Order of args is m11, m12, m21, m22, dx, dy
This commit is contained in:
@@ -131,9 +131,8 @@ ol.renderer.canvas.Map.prototype.renderFrame = function(frameState) {
|
|||||||
this.canvasSize_ = size;
|
this.canvasSize_ = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME filling the background doesn't seem to work
|
|
||||||
var context = this.context_;
|
var context = this.context_;
|
||||||
context.setTransform(1, 0, 1, 0, 0, 0);
|
context.setTransform(1, 0, 0, 1, 0, 0);
|
||||||
var backgroundColor = frameState.backgroundColor;
|
var backgroundColor = frameState.backgroundColor;
|
||||||
context.fillStyle = 'rgb(' +
|
context.fillStyle = 'rgb(' +
|
||||||
backgroundColor.r.toFixed(0) + ',' +
|
backgroundColor.r.toFixed(0) + ',' +
|
||||||
|
|||||||
Reference in New Issue
Block a user