diff --git a/lib/cartodb/models/aggregation/aggregation-mapconfig.js b/lib/cartodb/models/aggregation/aggregation-mapconfig.js index e08f3024..bc93ceab 100644 --- a/lib/cartodb/models/aggregation/aggregation-mapconfig.js +++ b/lib/cartodb/models/aggregation/aggregation-mapconfig.js @@ -115,8 +115,8 @@ module.exports = class AggregationMapConfig extends MapConfig { } getAggregation (index) { - if (!this.hasLayerAggregation(index)) { - return; + if (this.isVectorOnlyMapConfig() && !this.hasLayerAggregation(index)) { + return {}; } const { aggregation } = this.getLayer(index).options;