anchor.diff:      <%= @doc.north  %>
     );
   
  -   var map = new OpenLayers.Map('item_map', {
  +  map = new OpenLayers.Map('item_map', {
       projection: new OpenLayers.Projection("EPSG:4326"),
       displayProjection: new OpenLayers.Projection("EPSG:4326"),
       maxExtent: bounds,
  
positive.code:       new OpenLayers.Control.Attribution(),
        new OpenLayers.Control.Navigation(),
        new OpenLayers.Control.PanZoomBar(),
        //new OpenLayers.Control.LayerSwitcher(
        //  {
        //    'div': OpenLayers.Util.getElement('layerswitcher')
        //  }
        //),
        new OpenLayers.Control.ScaleLine(),
        new OpenLayers.Control.MousePosition()
      ]
     });
  
    <% @doc.layers.each do |layer| %>
      <% clean_layer = /\:(.*)/.match(layer.text)[1].to_s %>
  
negative.code: 
    var activeLayer = null;
  
  
    $('#layer-switcher').change(function() {
      var layer = map.getLayersByName(this.value)[0];
  
      console.log('layer', map.getLayersByName(this.value));
  
      if(activeLayer != null) {
        activeLayer.setVisibility(false);
      }
  
      layer.setVisibility(true);
      activeLayer = layer;
      console.log('activeLayer', activeLayer);
  
    });
  
  })();
  
  </script>
  
  
  