Updating point renderer to support the new callback style for proccessTile. Not sure this is used any more but just to be safe.

This commit is contained in:
Stuart Lynn 2015-10-27 15:42:33 -04:00
parent ccc871a2c3
commit fe8958d12a

View File

@ -44,14 +44,16 @@ function getTile(jsonRelPath, cartocss, z, x, y, step, callback) {
var canvas = new Canvas(256, 256); var canvas = new Canvas(256, 256);
var pointRenderer = new torque.renderer.Point(canvas, rendererOptions); var pointRenderer = new torque.renderer.Point(canvas, rendererOptions);
provider.proccessTile(rows, {x: x, y: y}, z, function(tile){
pointRenderer.renderTile(provider.proccessTile(rows, {x: x, y: y}, z), step, function(err) { pointRenderer.renderTile(tile, step, function(err) {
if (err) { if (err) {
return callback(err, null); return callback(err, null);
} }
pointRenderer.applyFilters(); pointRenderer.applyFilters();
return callback(null, canvas); return callback(null, canvas);
}); });
}.bind(this));
} }
module.exports = { module.exports = {