Add RESOLUTION default getter
This commit is contained in:
@@ -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 = {},
|
||||
|
||||
Reference in New Issue
Block a user