From 7b731a24d17244dcf447d094a2538fe6d1a2349e Mon Sep 17 00:00:00 2001 From: Raul Marin Date: Wed, 26 Jun 2019 16:52:16 +0200 Subject: [PATCH] Overviews Adapter: Do not check overviews if using MVT pure style or aggregations --- .../models/mapconfig/adapter/mapconfig-overviews-adapter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js b/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js index 3d0f6580..c2d9b784 100644 --- a/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/mapconfig-overviews-adapter.js @@ -2,6 +2,7 @@ var queue = require('queue-async'); var _ = require('underscore'); +const AggregationMapConfig = require('../../aggregation/aggregation-mapconfig'); function MapConfigOverviewsAdapter(overviewsMetadataBackend, filterStatsBackend) { this.overviewsMetadataBackend = overviewsMetadataBackend; @@ -14,7 +15,9 @@ MapConfigOverviewsAdapter.prototype.getMapConfig = function (user, requestMapCon var layers = requestMapConfig.layers; var analysesResults = context.analysesResults; - if (!layers || layers.length === 0) { + const aggMapConfig = new AggregationMapConfig(null, requestMapConfig); + if (aggMapConfig.isVectorOnlyMapConfig() || aggMapConfig.isAggregationMapConfig() || + !layers || layers.length === 0) { return callback(null, requestMapConfig); }