constructs the ballRenderer JIT
This commit is contained in:
parent
7ad4f21cc7
commit
bc37a754a8
@ -57,7 +57,6 @@ var ballRenderer = require('./ball.js');
|
||||
this.TILE_SIZE = 256;
|
||||
this._style = null;
|
||||
this._gradients = {};
|
||||
this._ballRenderer = ballRenderer(this._canvas);
|
||||
|
||||
this._forcePoints = false;
|
||||
}
|
||||
@ -164,7 +163,10 @@ var ballRenderer = require('./ball.js');
|
||||
//
|
||||
// renders all the layers (and frames for each layer) from cartocss
|
||||
//
|
||||
renderTile: function(tile, key) {
|
||||
renderTile: function(tile, key,pos) {
|
||||
if(typeof this.ballRenderer === "undefined"){
|
||||
this.ballRenderer = new ballRenderer(this._canvas);
|
||||
}
|
||||
this._renderTile(tile, key, 0, null, null, null, pos);
|
||||
// var prof = Profiler.metric('torque.renderer.point.renderLayers').start();
|
||||
// var layers = this._shader.getLayers();
|
||||
|
Loading…
Reference in New Issue
Block a user