code: function(map) {
          if (this.pane && this.pane.parentNode) {
              this.pane.parentNode.removeChild(this.pane);
          }
          OpenLayers.Layer.prototype.removeMap.apply(this, arguments);
      }
docs: APIMethod: removeMap
  On being removed from the map, we'll like to remove the invisible 'pane'
  div that we added to it on creation.
  
  Parameters:
  map - {<OpenLayers.Map>}