Merge pull request #272 from CartoDB/setting-cartocss

Setting cartocss in internal style
This commit is contained in:
Javier Álvarez Medina 2016-09-22 11:55:13 +02:00 committed by GitHub
commit 01ffec1a34

View File

@ -111,6 +111,9 @@ var CartoDatasource = require('./datasource');
// //
setCartoCSS: function(cartocss, callback) { setCartoCSS: function(cartocss, callback) {
var self = this; var self = this;
this.style = cartocss;
if (PointRenderer.isTurboCarto(cartocss)) { if (PointRenderer.isTurboCarto(cartocss)) {
var datasource = new CartoDatasource(self.layer._tiles); var datasource = new CartoDatasource(self.layer._tiles);
turbocarto(cartocss, datasource, function (err, parsedCartoCSS) { turbocarto(cartocss, datasource, function (err, parsedCartoCSS) {