From 2bc79e183fcd74806766001556d18a3bc37853d0 Mon Sep 17 00:00:00 2001 From: javi Date: Thu, 3 Dec 2015 12:40:07 +0100 Subject: [PATCH] fixed renderer --- lib/torque/renderer/point.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index df9aec4..b1cf061 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -186,7 +186,7 @@ var Filters = require('./torque_filters'); // // renders all the layers (and frames for each layer) from cartocss // - renderTile: function(tile, key, renderFlags, callback) { + renderTile: function(tile, key, callback) { if (this._iconsToLoad > 0) { this.on('allIconsLoaded', function() { this.renderTile.apply(this, [tile, key, callback]); @@ -267,7 +267,7 @@ var Filters = require('./torque_filters'); key = tile.maxDate; } var tileMax = this.options.resolution * (this.TILE_SIZE/this.options.resolution - 1) - var activePixels = tile.x.length; + var activePixels = tile.timeCount[key]; var anchor = this.options.resolution/2; if (activePixels) { var pixelIndex = tile.timeIndex[key];