code: function(map) {
          if (this._destroyed || !OpenLayers.Layer.Grid) {
              return;
          }
          this.maps.push(map);
          this.tileQueue[map.id] = [];
          for (var i=0, ii=map.layers.length; i<ii; ++i) {
              this.addLayer({layer: map.layers[i]});
          }
          map.events.on({
              move: this.move,
              zoomend: this.zoomEnd,
              changelayer: this.changeLayer,
              addlayer: this.addLayer,
              preremovelayer: this.removeLayer,
              scope: this
          });
      }
docs: Method: addMap
  Binds this instance to a map
  
  Parameters:
  map - {<OpenLayers.Map>}