anchor.diff:      loaderControl: false
     })
     .done(function(vis, layers) {
  -    var map = vis.getNativeMap();
       var sublayer = layers[1].getSubLayer(0);
       vis.addOverlay({
         type: 'tooltip',
  
positive.code:     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,
  
negative.code: <% content_for(:javascript) do %>
  $(function () {
  CSS['gasto_por_habitante'] = "\
  #indicators_2016 [ value <= 700]  { polygon-fill: #d73027; }\
  #indicators_2016 [ value > 700]   { polygon-fill: #f79272; }\
  #indicators_2016 [ value > 1200]  { polygon-fill: #fff2cc; }\
  #indicators_2016 [ value > 1500]  { polygon-fill: #8cce8a; }\
  #indicators_2016 [ value > 3000 ] { polygon-fill: #1a9850; }\
  #indicators_2016 [ value = 0]  { polygon-fill: #ffffff; }\
  ";
  
  CSS['gasto_total'] = "\
  #indicators_2016 [ value <= 700000] { polygon-fill: #d73027; }\
  #indicators_2016 [ value >  700000] { polygon-fill: #f79272; }\
  #indicators_2016 [ value > 1200000] { polygon-fill: #fff2cc; }\
  #indicators_2016 [ value > 1500000] { polygon-fill: #8cce8a; }\
  #indicators_2016 [ value > 3000000] { polygon-fill: #1a9850; }\
  #indicators_2016 [ value = 0]  { polygon-fill: #ffffff; }\
  ";
  
  CSS['budgets'] = "\
  #indicators_2016 [ value = 0]  { polygon-fill: #ffffff; }\
  #indicators_2016 [ value <=  10]  { polygon-fill: #d73027; }\
  #indicators_2016 [ value >   10]  { polygon-fill: #f79272; }\
  #indicators_2016 [ value >  800]  { polygon-fill: #fff2cc; }\
  #indicators_2016 [ value > 1500] { polygon-fill: #8cce8a; }\
  #indicators_2016 [ value > 3000] { polygon-fill: #1a9850; }\
  ";
  
  CSS['planned_vs_executed'] = "\
  #indicators_2016 [ value = 0]  { polygon-fill: #ffffff; }\
  #indicators_2016 [ value <= 100000]  { polygon-fill: #d73027; }\
  #indicators_2016 [ value >  100000]  { polygon-fill: #f79272; }\
  #indicators_2016 [ value > 8000000]  { polygon-fill: #fff2cc; }\
  #indicators_2016 [ value > 15000000] { polygon-fill: #8cce8a; }\
  #indicators_2016 [ value > 30000000] { polygon-fill: #1a9850; }\
  ";
  
  CSS['population'] = "\
  #indicators_2016 [ value = 0]  { polygon-fill: #ffffff; }\
  #indicators_2016 [ value <= 1000]   { polygon-fill: #d73027; }\
  #indicators_2016 [ value >  1000]    { polygon-fill: #f79272; }\
  #indicators_2016 [ value > 10000]   { polygon-fill: #fff2cc; }\
  #indicators_2016 [ value > 100000]  { polygon-fill: #8cce8a; }\
  #indicators_2016 [ value > 1000000] { polygon-fill: #1a9850; }\
  ";
  
  CSS['debt'] = "\
  #indicators_2016 [ value = 0]  { polygon-fill: #ffffff; }\
  #indicators_2016 [ value <= 1000]   { polygon-fill: #d73027; }\
  #indicators_2016 [ value >  1000]    { polygon-fill: #f79272; }\
  #indicators_2016 [ value > 10000]   { polygon-fill: #fff2cc; }\
  #indicators_2016 [ value > 100000]  { polygon-fill: #8cce8a; }\
  #indicators_2016 [ value > 1000000] { polygon-fill: #1a9850; }\
  