code: function(options) {
          //restricted is true by default
          var restricted = (options) ? options.restricted : true;
  
          var maxExtent = this.getMaxExtent({
              'restricted': restricted 
          });
          this.zoomToExtent(maxExtent);
      }
docs: APIMethod: zoomToMaxExtent
  Zoom to the full extent and recenter.
  
  Parameters:
  options - {Object}
  
  Allowed Options:
  restricted - {Boolean} True to zoom to restricted extent if it is
  set. Defaults to true.