Use turbocarto only if there's a layer

pull/307/head
Rafa de la Torre 5 years ago
parent 3a782117f5
commit c62c4f548e

@ -123,7 +123,7 @@ var CartoDatasource = require('./datasource');
this.style = stripComments(cartocss);
if (PointRenderer.isTurboCarto(this.style)) {
if (PointRenderer.isTurboCarto(this.style) && self.layer) {
var datasource = new CartoDatasource(self.layer._tiles);
turbocarto(this.style, datasource, function (err, parsedCartoCSS) {
if (err) {

Loading…
Cancel
Save