anchor.diff:  <% @service_base = SiteConfig.geoserver_url + "/" + @workspace %>
  -
   
   <div class="content">
     <h1><%= @doc.title %></h1>
   
  -  <select onchange="changeLayer();">
  +  <select id="layer-switcher">
       <% @doc.layers.each do |layer| %>
         <%# TODO: extract to method %>
  -      <% clean_layer = /\:(.*)/.match(layer.text)[1].to_s %>
  -      <option value="<%= clean_layer %>"><%= clean_layer %></option>
  +    <% clean_layer = /\:(.*)/.match(layer.text)[1].to_s %>
  +    <option value="<%= clean_layer %>"><%= clean_layer %></option>
     <% end %>
     </select>
   
     <div id="item_map"></div>
     <div id="layerswitcher" class="olControlLayerSwitcher"></div>
   
  -      <div id="layers">
  +  <div id="layers">
   
       <h2>Individual Layers</h2>
   
       <% @doc.layers.each do |layer| %>
         <p>
  -      <strong><%= layer.content %></strong> (
  -        <%= link_to(pdf_url(layer.text), 'PDF') %>,
  -        <%= link_to(kml_url(layer.text), 'KML') %>,
  -        <%= link_to(jpeg_url(layer.text), 'JPEG', :class => 'ajax') %>,
  -        <%= link_to(ol_url(layer.text), 'Web Map', :class => 'cboxElement ajax') %>
  -        )
  -      </p>
  +    <strong><%= layer.content %></strong> (
  +    <%= link_to(pdf_url(layer.text), 'PDF') %>,
  +    <%= link_to(kml_url(layer.text), 'KML') %>,
  +    <%= link_to(jpeg_url(layer.text), 'JPEG', :class => 'ajax') %>,
  +    <%= link_to(ol_url(layer.text), 'Web Map', :class => 'cboxElement ajax') %>
  +    )
  +    </p>
     <% end %>
   
     </div>
  
positive.code: 
    var activeLayer = null;
  
  })();
  
  function changeLayer() {
    var layer = map.getLayersByName(this.value)[0];
    
    if(activeLayer != null) {
       activeLayer.setVisibility(false);
    }
  
    layer.setVisibility(true);
    activeLayer = layer;
    console.log('activeLayer', activeLayer);
  }
  </script>
  
  
  
negative.code: <script>
  //todo refactor this
  $(document).ready(function(){$(".ajax").colorbox({iframe:!0,width:"80%",height:"80%"})});
  </script>
  
  <% end %>
  