code: function() {
          // If the projections differ we need to reproject
          var bounds;
          if (this.ovmap.getProjection() != this.map.getProjection()) {
              bounds = this.map.getExtent().transform(
                  this.map.getProjectionObject(), 
                  this.ovmap.getProjectionObject() );
          } else {
              bounds = this.map.getExtent();
          }
          var pxBounds = this.getRectBoundsFromMapBounds(bounds);
          if (pxBounds) {
              this.setRectPxBounds(pxBounds);
          }
      }
docs: Method: updateRectToMap
  Updates the extent rectangle position and size to match the map extent