Merge pull request #272 from CartoDB/setting-cartocss
Setting cartocss in internal style
This commit is contained in:
commit
01ffec1a34
@ -111,6 +111,9 @@ var CartoDatasource = require('./datasource');
|
||||
//
|
||||
setCartoCSS: function(cartocss, callback) {
|
||||
var self = this;
|
||||
|
||||
this.style = cartocss;
|
||||
|
||||
if (PointRenderer.isTurboCarto(cartocss)) {
|
||||
var datasource = new CartoDatasource(self.layer._tiles);
|
||||
turbocarto(cartocss, datasource, function (err, parsedCartoCSS) {
|
||||
|
Loading…
Reference in New Issue
Block a user