Call to cartocss renderer

This commit is contained in:
Raul Ochoa 2014-12-09 16:25:03 +01:00
parent 7499e8cf6a
commit 5efdf16c61

View File

@ -85,13 +85,13 @@ var carto = require('carto');
ctx.translate(w/2, w/2);
if(st['point-file'] || st['marker-file']) {
torque.cartocss.renderSprite(ctx, st);
cartocss.renderSprite(ctx, st);
} else {
var mt = st['marker-type'];
if (mt && mt === 'rectangle') {
torque.cartocss.renderRectangle(ctx, st);
cartocss.renderRectangle(ctx, st);
} else {
torque.cartocss.renderPoint(ctx, st);
cartocss.renderPoint(ctx, st);
}
}
prof.end(true);