applyOptions_(options) {
    /**
     * @type {Object<string, *>}
     */
    const properties = {};

    const resolutionConstraintInfo = createResolutionConstraint(options);

    /**
     * @private
     * @type {number}
     */
    this.maxResolution_ = resolutionConstraintInfo.maxResolution;

    /**
     * @private
     * @type {number}
     */
    this.minResolution_ = resolutionConstraintInfo.minResolution;

    /**
     * @private
     * @type {number}
     */
    this.zoomFactor_ = resolutionConstraintInfo.zoomFactor;

    /**
     * @private
     * @type {Array<number>|undefined}
     */
    this.resolutions_ = options.resolutions;

    /**
     * @type {Array<number>|undefined}
     * @private
     */
    this.padding_ = options.padding;

    /**
     * @private
     * @type {number}
     */
    this.minZoom_ = resolutionConstraintInfo.minZoom;

    const centerConstraint = createCenterConstraint(options);
    const resolutionConstraint = resolutionConstraintInfo.constraint;
    const rotationConstraint = createRotationConstraint(options);

    /**
     * @private
     * @type {Constraints}
     */
    this.constraints_ = {
      center: centerConstraint,
      resolution: resolutionConstraint,
      rotation: rotationConstraint,
    };

    this.setRotation(options.rotation !== undefined ? options.rotation : 0);
    this.setCenterInternal(
      options.center !== undefined ? options.center : null
    );
    if (options.resolution !== undefined) {
      this.setResolution(options.resolution);
    } else if (options.zoom !== undefined) {
      this.setZoom(options.zoom);
    }

    this.setProperties(properties);

    /**
     * @private
     * @type {ViewOptions}
     */
    this.options_ = options;
  }
/**
   * Set up the view with the given options.
   * @param {ViewOptions} options View options.
   */
Set up the view with the given options.
@param {ViewOptions} options View options.
Set up the view with the given options . @param { ViewOptions } options View options .
applyOptions_(options) {
    const properties = {};
    const resolutionConstraintInfo = createResolutionConstraint(options);
    this.maxResolution_ = resolutionConstraintInfo.maxResolution;
    this.minResolution_ = resolutionConstraintInfo.minResolution;
    this.zoomFactor_ = resolutionConstraintInfo.zoomFactor;
    this.resolutions_ = options.resolutions;
    this.padding_ = options.padding;
    this.minZoom_ = resolutionConstraintInfo.minZoom;
    const centerConstraint = createCenterConstraint(options);
    const resolutionConstraint = resolutionConstraintInfo.constraint;
    const rotationConstraint = createRotationConstraint(options);
    this.constraints_ = {
      center: centerConstraint,
      resolution: resolutionConstraint,
      rotation: rotationConstraint,
    };
    this.setRotation(options.rotation !== undefined ? options.rotation : 0);
    this.setCenterInternal(
      options.center !== undefined ? options.center : null
    );
    if (options.resolution !== undefined) {
      this.setResolution(options.resolution);
    } else if (options.zoom !== undefined) {
      this.setZoom(options.zoom);
    }
    this.setProperties(properties);
    this.options_ = options;
  }
applyOptions_ ( options ) { const properties = { } ; const resolutionConstraintInfo = createResolutionConstraint ( options ) ; this . maxResolution_ = resolutionConstraintInfo . maxResolution ; this . minResolution_ = resolutionConstraintInfo . minResolution ; this . zoomFactor_ = resolutionConstraintInfo . zoomFactor ; this . resolutions_ = options . resolutions ; this . padding_ = options . padding ; this . minZoom_ = resolutionConstraintInfo . minZoom ; const centerConstraint = createCenterConstraint ( options ) ; const resolutionConstraint = resolutionConstraintInfo . constraint ; const rotationConstraint = createRotationConstraint ( options ) ; this . constraints_ = { center : centerConstraint , resolution : resolutionConstraint , rotation : rotationConstraint , } ; this . setRotation ( options . rotation !== undefined ? options . rotation : 0 ) ; this . setCenterInternal ( options . center !== undefined ? options . center : null ) ; if ( options . resolution !== undefined ) { this . setResolution ( options . resolution ) ; } else if ( options . zoom !== undefined ) { this . setZoom ( options . zoom ) ; } this . setProperties ( properties ) ; this . options_ = options ; }
Set up the view with the given options.
Set up the view with the given options .
/**
     * @type {Object<string, *>}
     */ /**
     * @private
     * @type {number}
     */ /**
     * @private
     * @type {number}
     */ /**
     * @private
     * @type {number}
     */ /**
     * @private
     * @type {Array<number>|undefined}
     */ /**
     * @type {Array<number>|undefined}
     * @private
     */ /**
     * @private
     * @type {number}
     */ /**
     * @private
     * @type {Constraints}
     */ /**
     * @private
     * @type {ViewOptions}
     */