code: function(bounds, zoomChanged, dragging) {
          OpenLayers.Layer.prototype.moveTo.apply(this, arguments);
  
          if (this.mapObject != null) {
  
              var newCenter = this.map.getCenter();
              var newZoom = this.map.getZoom();
  
              if (newCenter != null) {
  
                  var moOldCenter = this.getMapObjectCenter();
                  var oldCenter = this.getOLLonLatFromMapObjectLonLat(moOldCenter);
  
                  var moOldZoom = this.getMapObjectZoom();
                  var oldZoom= this.getOLZoomFromMapObjectZoom(moOldZoom);
  
                  if (!(newCenter.equals(oldCenter)) || newZoom != oldZoom) {
  
                      if (!zoomChanged && oldCenter && this.dragPanMapObject && 
                          this.smoothDragPan) {
                          var oldPx = this.map.getViewPortPxFromLonLat(oldCenter);
                          var newPx = this.map.getViewPortPxFromLonLat(newCenter);
                          this.dragPanMapObject(newPx.x-oldPx.x, oldPx.y-newPx.y);
                      } else {
                          var center = this.getMapObjectLonLatFromOLLonLat(newCenter);
                          var zoom = this.getMapObjectZoomFromOLZoom(newZoom);
                          this.setMapObjectCenter(center, zoom, dragging);
                      }
                  }
              }
          }
      }
docs: Method: moveTo
  Handle calls to move the layer.
  
  Parameters:
  bounds - {<OpenLayers.Bounds>}
  zoomChanged - {Boolean}
  dragging - {Boolean}