From 81e0c3a098f1300474c0763dd0d7233e1b446578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 18 Dec 2017 18:26:08 +0100 Subject: [PATCH] Add RESOLUTION default getter --- lib/cartodb/models/aggregation/aggregation-map-config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = {},