Add RESOLUTION default getter

This commit is contained in:
Daniel García Aubert
2017-12-18 18:26:08 +01:00
parent 2068861988
commit 81e0c3a098
@@ -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 = {},