fixed point renderer precache size
This commit is contained in:
parent
8436b0d964
commit
71ef5cee95
@ -69,10 +69,10 @@
|
|||||||
|
|
||||||
var canvas = document.createElement('canvas');
|
var canvas = document.createElement('canvas');
|
||||||
var ctx = canvas.getContext('2d');
|
var ctx = canvas.getContext('2d');
|
||||||
ctx.width = canvas.width = canvasSize;
|
ctx.width = canvas.width = Math.ceil(canvasSize);
|
||||||
ctx.height = canvas.height = canvasSize;
|
ctx.height = canvas.height = Math.ceil(canvasSize);
|
||||||
ctx.translate(pointSize, pointSize);
|
ctx.translate(canvasSize/2, canvasSize/2);
|
||||||
if(st['point-file'] || st['marker-fil']) {
|
if(st['point-file'] || st['marker-file']) {
|
||||||
torque.cartocss.renderSprite(ctx, st);
|
torque.cartocss.renderSprite(ctx, st);
|
||||||
} else {
|
} else {
|
||||||
torque.cartocss.renderPoint(ctx, st);
|
torque.cartocss.renderPoint(ctx, st);
|
||||||
|
Loading…
Reference in New Issue
Block a user