fixed rendering when the lineWidth it's a float
This commit is contained in:
parent
afcc3183a9
commit
91396884a6
@ -76,9 +76,9 @@
|
||||
|
||||
var canvas = document.createElement('canvas');
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.width = canvas.width = Math.ceil(canvasSize);
|
||||
var w = ctx.width = canvas.width = Math.ceil(canvasSize);
|
||||
ctx.height = canvas.height = Math.ceil(canvasSize);
|
||||
ctx.translate(canvasSize/2, canvasSize/2);
|
||||
ctx.translate(w/2, w/2);
|
||||
if(st['point-file'] || st['marker-file']) {
|
||||
torque.cartocss.renderSprite(ctx, st);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user