Debug option for internal nodes: it allows to display and customize cartocss

This commit is contained in:
Raul Ochoa 2016-03-04 16:20:23 +01:00
parent f504807812
commit 634a4c2a01

View File

@ -104,11 +104,13 @@ MapConfigAnalysisLayersAdapter.prototype.getLayers = function(analysisConfigurat
var layers = [];
analysis.getSortedNodes().reverse().forEach(function(node, i) {
var layer = getLayer(node.getQuery(), node.getColumns(), '#333', 0.1 * i);
if (!!node.params && !!node.params.cartocss) {
layer = getLayerWithStyle(node.getQuery(), node.getColumns(), node.params.cartocss);
if (node.params && node.params.debug) {
var layer = getLayer(node.getQuery(), node.getColumns(), '#333', 0.1 * i);
if (!!node.params && !!node.params.cartocss) {
layer = getLayerWithStyle(node.getQuery(), node.getColumns(), node.params.cartocss);
}
layers.push(layer);
}
layers.push(layer);
});
layers.push(getLayerWithStyle(