No vars for adapters

This commit is contained in:
Raul Ochoa 2016-05-23 23:40:21 +02:00
parent 777fb78abc
commit 4759d178d3

View File

@ -41,7 +41,6 @@ var MapConfigNamedLayersAdapter = require('./models/mapconfig/adapter/mapconfig-
var AnalysisMapConfigAdapter = require('./models/mapconfig/adapter/analysis-mapconfig-adapter'); var AnalysisMapConfigAdapter = require('./models/mapconfig/adapter/analysis-mapconfig-adapter');
var MapConfigOverviewsAdapter = require('./models/mapconfig/adapter/mapconfig-overviews-adapter'); var MapConfigOverviewsAdapter = require('./models/mapconfig/adapter/mapconfig-overviews-adapter');
var TurboCartoAdapter = require('./models/mapconfig/adapter/turbo-carto-adapter'); var TurboCartoAdapter = require('./models/mapconfig/adapter/turbo-carto-adapter');
var MapConfigAdapter = require('./models/mapconfig/adapter'); var MapConfigAdapter = require('./models/mapconfig/adapter');
module.exports = function(serverOptions) { module.exports = function(serverOptions) {
@ -155,17 +154,14 @@ module.exports = function(serverOptions) {
var layergroupAffectedTablesCache = new LayergroupAffectedTablesCache(); var layergroupAffectedTablesCache = new LayergroupAffectedTablesCache();
app.layergroupAffectedTablesCache = layergroupAffectedTablesCache; app.layergroupAffectedTablesCache = layergroupAffectedTablesCache;
var overviewsAdapter = new MapConfigOverviewsAdapter(overviewsMetadataApi, filterStatsApi);
var turboCartoParser = new TurboCartoParser(pgQueryRunner); var turboCartoParser = new TurboCartoParser(pgQueryRunner);
var turboCartoAdapter = new TurboCartoAdapter(turboCartoParser);
var mapConfigAdapter = new MapConfigAdapter([ var mapConfigAdapter = new MapConfigAdapter([
new SqlWrapMapConfigAdapter(), new SqlWrapMapConfigAdapter(),
new AnalysisMapConfigAdapter(analysisBackend), new AnalysisMapConfigAdapter(analysisBackend),
new MapConfigNamedLayersAdapter(templateMaps, pgConnection), new MapConfigNamedLayersAdapter(templateMaps, pgConnection),
overviewsAdapter, new MapConfigOverviewsAdapter(overviewsMetadataApi, filterStatsApi),
turboCartoAdapter new TurboCartoAdapter(turboCartoParser)
]); ]);
var namedMapProviderCache = new NamedMapProviderCache( var namedMapProviderCache = new NamedMapProviderCache(