Return empty aggregation configuration when the map-config is vector-only and the layer has no aggregation
This commit is contained in:
parent
99b95cf839
commit
75f72c4d07
@ -115,8 +115,8 @@ module.exports = class AggregationMapConfig extends MapConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getAggregation (index) {
|
getAggregation (index) {
|
||||||
if (!this.hasLayerAggregation(index)) {
|
if (this.isVectorOnlyMapConfig() && !this.hasLayerAggregation(index)) {
|
||||||
return;
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
const { aggregation } = this.getLayer(index).options;
|
const { aggregation } = this.getLayer(index).options;
|
||||||
|
Loading…
Reference in New Issue
Block a user