code: function(map) {
          OpenLayers.Control.prototype.setMap.apply(this, arguments);
  
          //make sure we dont already have an arg parser attached
          for(var i=0, len=this.map.controls.length; i<len; i++) {
              var control = this.map.controls[i];
              if ( (control != this) &&
                   (control.CLASS_NAME == "OpenLayers.Control.ArgParser") ) {
                  
                  // If a second argparser is added to the map, then we 
                  // override the displayProjection to be the one added to the
                  // map. 
                  if (control.displayProjection != this.displayProjection) {
                      this.displayProjection = control.displayProjection;
                  }    
                  
                  break;
              }
          }
          if (i == this.map.controls.length) {
  
              var args = this.getParameters();
              // Be careful to set layer first, to not trigger unnecessary layer loads
              if (args.layers) {
                  this.layers = args.layers;
      
                  // when we add a new layer, set its visibility 
                  this.map.events.register('addlayer', this, 
                                           this.configureLayers);
                  this.configureLayers();
              }
              if (args.lat && args.lon) {
                  this.center = new OpenLayers.LonLat(parseFloat(args.lon),
                                                      parseFloat(args.lat));
                  if (args.zoom) {
                      this.zoom = parseFloat(args.zoom);
                  }
      
                  // when we add a new baselayer to see when we can set the center
                  this.map.events.register('changebaselayer', this, 
                                           this.setCenter);
                  this.setCenter();
              }
          }
      }
docs: Method: setMap
  Set the map property for the control.
  
  Parameters:
  map - {<OpenLayers.Map>}