anchor.diff:      var home_map_center_lat = 38.3;
       var home_map_center_lon = -4.0;
     }
  -
  -  var infowindow_fields = ['name', 'value'];
   
     cartodb.createVis('map', 'https://gobierto.carto.com/api/v2/viz/205616b2-b893-11e6-b070-0e233c30368f/viz.json', {
       shareable: false,
  
positive.code:     $(document).on('renderBudgetLineCategory', function(e){
        $('.metric').removeClass('selected');
        var year = $('body').data('year');
        console.log(year, e.kind, e.area, e.code);
  
        layer.show();
  
        var query = "select t.cartodb_id, t.place_id, t.nameunit as name, t.the_geom, t.the_geom_webmercator, i.code, i.kind, i.area, i.amount, i.amount_per_inhabitant as value from ign_spanish_adm3_municipalities_displaced_canary as t full join planned_budgets_"+year+" as i on i.place_id = t.place_id" +
                    " WHERE code='"+e.code+"' AND kind='" + e.kind + "' AND area='" + e.area[0] + "'";
        console.log(query);
        layer.setSQL(query);
  
  
negative.code:     $('[data-indicator]').click(function(e){
        var year = $('body').data('year');
        var indicator = $('.metric.selected').data('indicator');
        layer.show();
  
        var query = "select i.cartodb_id, t.place_id, t.nameunit as name, t.the_geom, t.the_geom_webmercator, i."+indicator+" as value from ign_spanish_adm3_municipalities_displaced_canary as t full join indicators_"+year+" as i on i.place_id = t.place_id";
        console.log(query);
        layer.setSQL(query);
  
  