From e784dcb048aec42b616117393d7b43b02e8d0d6c Mon Sep 17 00:00:00 2001 From: IagoLast Date: Thu, 3 May 2018 13:12:36 +0200 Subject: [PATCH] Fix time series google map Check if layer exists to prevent an error. More info [here](https://github.com/CartoDB/support/issues/1498#issuecomment-386035383) --- lib/torque/renderer/point.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }