diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index 159ec9a..efb68ff 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -142,7 +142,7 @@ var CartoDatasource = require('./datasource'); this._shader = shader; this._Map = this._shader.getDefault().getStyle({}, { zoom: 0 }); var img_names = this._shader.getImageURLs(); - if (this.layer.showLimitErrors) { + if (this.layer && this.layer.showLimitErrors) { img_names.push(ERROR_IMG_URL); }