fixed rendering when the lineWidth it's a float

This commit is contained in:
javi 2014-04-08 12:07:59 +02:00
parent afcc3183a9
commit 91396884a6

View File

@ -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 {