anchor.diff:  
     <% @doc.layers.each do |layer| %>
       <% clean_layer = /\:(.*)/.match(layer.text)[1].to_s %>
  -
       var <%= clean_layer %> = new OpenLayers.Layer.WMS(
         "<%= clean_layer %>",  "<%= SiteConfig.geoserver_url + '/wms' %>",
         { layers: "<%= layer.text %>", transparent: true, format: 'image/gif' },
  -      { isBaseLayer: false }
  +      { isBaseLayer: false, visibility: false }
       );
   
       map.addLayer(<%= clean_layer %>);
     <% end %>
   
     map.zoomToExtent(bounds);
  -  console.log('map', map.maxExtent);
  -  console.log('bounds', bounds);
   
  -  var activeLayer = null;
  -
  +  // fix this
  +  var first =$("#layer-switcher option:first").val();
  +  var activeLayer = map.getLayersByName(first)[0];
  +  activeLayer.setVisibility(true);
   
     $('#layer-switcher').change(function() {
       var layer = map.getLayersByName(this.value)[0];
  -
  -    console.log('layer', map.getLayersByName(this.value));
   
       if(activeLayer != null) {
         activeLayer.setVisibility(false);
  
positive.code:       new OpenLayers.Control.Navigation(),
        new OpenLayers.Control.PanZoomBar(),
        new OpenLayers.Control.ScaleLine(),
        new OpenLayers.Control.MousePosition(),
        new OpenLayers.Control.LayerSwitcher()
      ]
    });
  
  
negative.code: 
      layer.setVisibility(true);
      activeLayer = layer;
  
    });
  
  
  })();
  
  