code: function (lonlat) {
          var originPx = this.getViewPortPxFromLonLat(this.layerContainerOrigin);
          var newPx = this.getViewPortPxFromLonLat(lonlat);
  
          if ((originPx != null) && (newPx != null)) {
              var oldLeft = this.layerContainerOriginPx.x;
              var oldTop = this.layerContainerOriginPx.y;
              var newLeft = Math.round(originPx.x - newPx.x);
              var newTop = Math.round(originPx.y - newPx.y);
              this.applyTransform(
                  (this.layerContainerOriginPx.x = newLeft),
                  (this.layerContainerOriginPx.y = newTop));
              var dx = oldLeft - newLeft;
              var dy = oldTop - newTop;
              this.minPx.x -= dx;
              this.maxPx.x -= dx;
              this.minPx.y -= dy;
              this.maxPx.y -= dy;
          }        
      }
docs: Method: centerLayerContainer
  This function takes care to recenter the layerContainerDiv.
  
  Parameters:
  lonlat - {<OpenLayers.LonLat>}