code: function(extent, resolutionChanged) {
          var coordSysUnchanged = OpenLayers.Renderer.prototype.setExtent.apply(this, arguments);
          var resolution = this.getResolution();
          if (this.map.baseLayer && this.map.baseLayer.wrapDateLine) {
              var rightOfDateLine,
                  ratio = extent.getWidth() / this.map.getExtent().getWidth(),
                  extent = extent.scale(1 / ratio),
                  world = this.map.getMaxExtent();
              if (world.right > extent.left && world.right < extent.right) {
                  rightOfDateLine = true;
              } else if (world.left > extent.left && world.left < extent.right) {
                  rightOfDateLine = false;
              }
              if (rightOfDateLine !== this.rightOfDateLine || resolutionChanged) {
                  coordSysUnchanged = false;
                  this.xOffset = rightOfDateLine === true ?
                      world.getWidth() / resolution : 0;
              }
              this.rightOfDateLine = rightOfDateLine;
          }
          return coordSysUnchanged;
      }
docs: Method: setExtent
  Set the visible part of the layer.
  
  Parameters:
  extent - {<OpenLayers.Bounds>}
  resolutionChanged - {Boolean}
  
  Returns:
  {Boolean} true to notify the layer that the new extent does not exceed
  the coordinate range, and the features will not need to be redrawn.
  False otherwise.