fixed renderer
This commit is contained in:
parent
75bdbbfb80
commit
2bc79e183f
@ -186,7 +186,7 @@ var Filters = require('./torque_filters');
|
|||||||
//
|
//
|
||||||
// renders all the layers (and frames for each layer) from cartocss
|
// 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) {
|
if (this._iconsToLoad > 0) {
|
||||||
this.on('allIconsLoaded', function() {
|
this.on('allIconsLoaded', function() {
|
||||||
this.renderTile.apply(this, [tile, key, callback]);
|
this.renderTile.apply(this, [tile, key, callback]);
|
||||||
@ -267,7 +267,7 @@ var Filters = require('./torque_filters');
|
|||||||
key = tile.maxDate;
|
key = tile.maxDate;
|
||||||
}
|
}
|
||||||
var tileMax = this.options.resolution * (this.TILE_SIZE/this.options.resolution - 1)
|
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;
|
var anchor = this.options.resolution/2;
|
||||||
if (activePixels) {
|
if (activePixels) {
|
||||||
var pixelIndex = tile.timeIndex[key];
|
var pixelIndex = tile.timeIndex[key];
|
||||||
|
Loading…
Reference in New Issue
Block a user