This commit is contained in:
javi 2015-11-13 11:41:53 +01:00
parent 164643d0f1
commit 55847bda56

View File

@ -50,8 +50,8 @@ torque.extend(PixelRenderer.prototype, PointRenderer.prototype, {
if (sp) { if (sp) {
var x = tile.x[posIdx]- (sp.width >> 1) + anchor; var x = tile.x[posIdx]- (sp.width >> 1) + anchor;
var y = tileMax - tile.y[posIdx] + anchor; // flip mercator var y = tileMax - tile.y[posIdx] + anchor; // flip mercator
ctx.fillStyle = sp.color; ctx.fillStyle = sp.color;
ctx.fillRect(x, y, sp.width, sp.width); ctx.fillRect(x, y, sp.width, sp.width);
} }
} }
} }