Implemented integration of turbo-cartocss for named maps

This commit is contained in:
Daniel García Aubert
2016-03-10 20:45:00 +01:00
parent 46b212b2cd
commit dab4b6d56b
6 changed files with 210 additions and 22 deletions
-16
View File
@@ -255,22 +255,6 @@ MapController.prototype.instantiateTemplate = function(req, res, prepareParamsFn
}
);
},
function parseTurboCartoCss(err, requestMapConfig, datasource) {
assert.ifError(err);
var next = this;
self.turboCartoCssAdapter.getLayers(req.context.user, requestMapConfig.layers, function (err, layers) {
if (err) {
return next(err);
}
if (layers) {
requestMapConfig.layers = layers;
}
return next(null, requestMapConfig, datasource);
});
},
function createLayergroup(err, mapConfig_, rendererParams) {
assert.ifError(err);
mapConfig = mapConfig_;