code: function(id) {
          var foundLayer = null;
          for (var i=0, len=this.layers.length; i<len; i++) {
              var layer = this.layers[i];
              if (layer.id == id) {
                  foundLayer = layer;
                  break;
              }
          }
          return foundLayer;
      }
docs: ***************************************************** /* /*                  Layer Functions /* /*     The following functions deal with adding and /*        removing Layers to and from the Map /* ***************************************************** 
  APIMethod: getLayer
  Get a layer based on its id
  
  Parameters:
  id - {String} A layer id
  
  Returns:
  {<OpenLayers.Layer>} The Layer with the corresponding id from the map's
  layer collection, or null if not found.