Skip to content

Commit c62c4f5

Browse files
author
Rafa de la Torre
committed
Use turbocarto only if there's a layer
1 parent 3a78211 commit c62c4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/torque/renderer/point.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ var CartoDatasource = require('./datasource');
123123

124124
this.style = stripComments(cartocss);
125125

126-
if (PointRenderer.isTurboCarto(this.style)) {
126+
if (PointRenderer.isTurboCarto(this.style) && self.layer) {
127127
var datasource = new CartoDatasource(self.layer._tiles);
128128
turbocarto(this.style, datasource, function (err, parsedCartoCSS) {
129129
if (err) {

0 commit comments

Comments
 (0)