Order of adapters: named maps should expand named layers as first step

This commit is contained in:
Raul Ochoa 2016-05-24 19:16:38 +02:00
parent 4759d178d3
commit 5a2afa9b89

View File

@ -157,9 +157,9 @@ module.exports = function(serverOptions) {
var turboCartoParser = new TurboCartoParser(pgQueryRunner);
var mapConfigAdapter = new MapConfigAdapter([
new MapConfigNamedLayersAdapter(templateMaps, pgConnection),
new SqlWrapMapConfigAdapter(),
new AnalysisMapConfigAdapter(analysisBackend),
new MapConfigNamedLayersAdapter(templateMaps, pgConnection),
new MapConfigOverviewsAdapter(overviewsMetadataApi, filterStatsApi),
new TurboCartoAdapter(turboCartoParser)
]);