Remove control flag
This commit is contained in:
parent
c637caf9c9
commit
f52cc276be
@ -77,29 +77,23 @@ module.exports = class AggregationMapConfigAdapter {
|
||||
_shouldAdaptLayers (mapConfig, requestMapConfig, params) {
|
||||
const { aggregation } = params;
|
||||
|
||||
let shouldAdapt = false;
|
||||
|
||||
if (aggregation === 'false') {
|
||||
shouldAdapt = false;
|
||||
return shouldAdapt;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (aggregation === 'true') {
|
||||
shouldAdapt = true;
|
||||
return shouldAdapt;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (aggregation === undefined && mapConfig.isVectorOnlyMapConfig()) {
|
||||
shouldAdapt = true;
|
||||
return shouldAdapt;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (aggregation === undefined && this._hasAnyLayerAggregation(requestMapConfig)){
|
||||
shouldAdapt = true;
|
||||
return shouldAdapt;
|
||||
return true;
|
||||
}
|
||||
|
||||
return shouldAdapt;
|
||||
return false;
|
||||
}
|
||||
|
||||
_hasAnyLayerAggregation (requestMapConfig) {
|
||||
|
Loading…
Reference in New Issue
Block a user