Merge pull request #294 from CartoDB/1498-fix-time-series-gmaps

Fix time series google map
This commit is contained in:
IagoLast 2018-05-04 11:06:59 +02:00 committed by GitHub
commit f4720e0736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}