re-sets cartocss each time a tile is loaded

This commit is contained in:
Francisco Dans 2016-07-06 20:55:57 +02:00
parent d1ab5620c6
commit f52a47a04e

View File

@ -97,7 +97,7 @@ L.TorqueLayer = L.CanvasLayer.extend({
self.setKeys(self.getKeys()); self.setKeys(self.getKeys());
}; };
this.on('tilesLoaded', function () { this.on('tileLoaded', function () {
self.renderer.setCartoCSS(self.renderer.style); self.renderer.setCartoCSS(self.renderer.style);
}) })