Remove width trick to use clear rect, fix #280
This commit is contained in:
parent
16bac52b91
commit
79c48b5521
@ -89,7 +89,10 @@ var CartoDatasource = require('./datasource');
|
||||
var color = this._Map['-torque-clear-color']
|
||||
// shortcut for the default value
|
||||
if (color === "rgba(255, 255, 255, 0)" || !color) {
|
||||
this._canvas.width = this._canvas.width;
|
||||
this._ctx.save();
|
||||
this._ctx.setTransform(1, 0, 0, 1, 0, 0);
|
||||
this._ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
this._ctx.restore();
|
||||
} else {
|
||||
var ctx = this._ctx;
|
||||
ctx.setTransform(1, 0, 0, 1, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user