code: function() {
          var cache = OpenLayers.Layer.Google.cache[this.map.id];
          if (cache) {
              // remove shared elements from dom
              var container = this.mapObject && this.getMapContainer();                
              if (container && container.parentNode) {
                  container.parentNode.removeChild(container);
              }
              var termsOfUse = cache.termsOfUse;
              if (termsOfUse && termsOfUse.parentNode) {
                  termsOfUse.parentNode.removeChild(termsOfUse);
              }
              var poweredBy = cache.poweredBy;
              if (poweredBy && poweredBy.parentNode) {
                  poweredBy.parentNode.removeChild(poweredBy);
              }
              if (this.mapObject && window.google && google.maps &&
                      google.maps.event && google.maps.event.clearListeners) {
                  google.maps.event.clearListeners(this.mapObject, 'tilesloaded');
              }
          }
      }
docs: Method: removeGMapElements
  Remove all elements added to the dom.  This should only be called if
  this is the last of the Google layers for the given map.