set mapType in the controller instead of in the adapter

This commit is contained in:
Eneko Lakasta
2018-09-04 16:20:38 +02:00
parent 006e21379f
commit b75150e91e
3 changed files with 10 additions and 3 deletions
@@ -158,7 +158,10 @@ function prepareAdapterMapConfig (mapConfigAdapter) {
context,
(err, requestMapConfig, stats = { overviewsUsed : false }) => {
req.profiler.done('anonymous.getMapConfig');
stats.mapType = 'anonymous';
req.profiler.add(stats);
if (err) {
return next(err);