passes position on renderTile

This commit is contained in:
Francisco Dans 2015-02-24 12:07:11 +01:00
parent d7d7396ba8
commit 4b240a4485

View File

@ -230,11 +230,11 @@ L.TorqueLayer = L.CanvasLayer.extend({
// all the points // all the points
this.renderer._ctx.drawImage(tile._tileCache, 0, 0); this.renderer._ctx.drawImage(tile._tileCache, 0, 0);
} else { } else {
this.renderer.renderTile(tile, this.key); this.renderer.renderTile(tile, this.key, pos);
} }
} }
} }
this.renderer.applyFilters(); //this.renderer.applyFilters();
// prepare caches if the animation is not running // prepare caches if the animation is not running
// don't cache if the key has just changed, this avoids to cache // don't cache if the key has just changed, this avoids to cache