code: function(map) {
          if (this._destroyed || !OpenLayers.Layer.Grid) {
              return;
          }
          window.clearTimeout(this.tileQueueId[map.id]);
          if (map.layers) {
              for (var i=0, ii=map.layers.length; i<ii; ++i) {
                  this.removeLayer({layer: map.layers[i]});
              }
          }
          if (map.events) {
              map.events.un({
                  move: this.move,
                  zoomend: this.zoomEnd,
                  changelayer: this.changeLayer,
                  addlayer: this.addLayer,
                  preremovelayer: this.removeLayer,
                  scope: this
              });
          }
          delete this.tileQueue[map.id];
          delete this.tileQueueId[map.id];
          OpenLayers.Util.removeItem(this.maps, map);
      }
docs: Method: removeMap
  Unbinds this instance from a map
  
  Parameters:
  map - {<OpenLayers.Map>}