diff --git a/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js b/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js index b5bac9d6..ac7841fb 100644 --- a/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js @@ -197,15 +197,15 @@ module.exports = class AggregationMapConfigAdapter { } _getAggregationMetadata (isVectorOnlyMapConfig, layer, adapted) { - if (adapted) { - if (isVectorOnlyMapConfig) { - return { png: false, mvt: true }; - } - - return { png: true, mvt: true }; + if (!adapted) { + return { png: false, mvt: false }; } - return { png: false, mvt: false }; + if (isVectorOnlyMapConfig) { + return { png: false, mvt: true }; + } + + return { png: true, mvt: true }; } _getAggregationColumns (aggregation) {