Remove control flag

This commit is contained in:
Daniel García Aubert 2017-12-12 10:57:50 +01:00
parent c637caf9c9
commit f52cc276be

View File

@ -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) {