diff --git a/lib/cartodb/models/aggregation/aggregation-map-config.js b/lib/cartodb/models/aggregation/aggregation-map-config.js index 2c1781c4..26f62b17 100644 --- a/lib/cartodb/models/aggregation/aggregation-map-config.js +++ b/lib/cartodb/models/aggregation/aggregation-map-config.js @@ -18,6 +18,10 @@ module.exports = class AggregationMapConfig extends MapConfig { return 1e5; // 100K } + static get RESOLUTION () { + return 1; + } + constructor (config, datasource) { super(config, datasource); @@ -27,7 +31,7 @@ module.exports = class AggregationMapConfig extends MapConfig { getAggregatedQuery (index) { const { sql_raw, sql } = this.getLayer(index).options; const { - resolution = 1, + resolution = AggregationMapConfig.RESOLUTION, threshold = AggregationMapConfig.THRESHOLD, placement = AggregationMapConfig.PLACEMENT, columns = {},