Use turbocarto only if there's a layer
This commit is contained in:
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…
Reference in New Issue
Block a user