From 878dcd1d2817b2bdc878f1088cbb92b32eb6015d Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 26 Jun 2014 16:52:52 -0400 Subject: [PATCH] Rename olx.View2DOptions to olx.ViewOptions --- externs/olx.js | 30 +++++++++++++++--------------- src/ol/view.js | 10 +++++----- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index fdcd9a19cf..cc1d32217f 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -370,7 +370,7 @@ olx.ProjectionOptions.prototype.global; * zoomFactor: (number|undefined)}} * @todo api */ -olx.View2DOptions; +olx.ViewOptions; /** @@ -379,7 +379,7 @@ olx.View2DOptions; * sources will not be fetched if this is not set. * @type {ol.Coordinate|undefined} */ -olx.View2DOptions.prototype.center; +olx.ViewOptions.prototype.center; /** @@ -389,14 +389,14 @@ olx.View2DOptions.prototype.center; * 270 degrees. The default is `true`. * @type {boolean|number|undefined} */ -olx.View2DOptions.prototype.constrainRotation; +olx.ViewOptions.prototype.constrainRotation; /** * Enable rotation. Default is `true`. * @type {boolean|undefined} */ -olx.View2DOptions.prototype.enableRotation; +olx.ViewOptions.prototype.enableRotation; /** @@ -404,7 +404,7 @@ olx.View2DOptions.prototype.enableRotation; * outside this extent. Default is `undefined`. * @type {ol.Extent|undefined} */ -olx.View2DOptions.prototype.extent; +olx.ViewOptions.prototype.extent; /** @@ -416,7 +416,7 @@ olx.View2DOptions.prototype.extent; * 156543.03392804097`. * @type {number|undefined} */ -olx.View2DOptions.prototype.maxResolution; +olx.ViewOptions.prototype.maxResolution; /** @@ -428,7 +428,7 @@ olx.View2DOptions.prototype.maxResolution; * 0.0005831682455839253`. * @type {number|undefined} */ -olx.View2DOptions.prototype.minResolution; +olx.ViewOptions.prototype.minResolution; /** @@ -438,7 +438,7 @@ olx.View2DOptions.prototype.minResolution; * precedence over `maxZoom`. * @type {number|undefined} */ -olx.View2DOptions.prototype.maxZoom; +olx.ViewOptions.prototype.maxZoom; /** @@ -448,14 +448,14 @@ olx.View2DOptions.prototype.maxZoom; * precedence over `minZoom`. * @type {number|undefined} */ -olx.View2DOptions.prototype.minZoom; +olx.ViewOptions.prototype.minZoom; /** * The projection. Default is `EPSG:3857` (Spherical Mercator). * @type {ol.proj.ProjectionLike} */ -olx.View2DOptions.prototype.projection; +olx.ViewOptions.prototype.projection; /** @@ -465,7 +465,7 @@ olx.View2DOptions.prototype.projection; * neither this nor `zoom` are defined. * @type {number|undefined} */ -olx.View2DOptions.prototype.resolution; +olx.ViewOptions.prototype.resolution; /** @@ -474,7 +474,7 @@ olx.View2DOptions.prototype.resolution; * options are ignored. * @type {Array.|undefined} */ -olx.View2DOptions.prototype.resolutions; +olx.ViewOptions.prototype.resolutions; /** @@ -482,7 +482,7 @@ olx.View2DOptions.prototype.resolutions; * Default is `0`. * @type {number|undefined} */ -olx.View2DOptions.prototype.rotation; +olx.ViewOptions.prototype.rotation; /** @@ -491,14 +491,14 @@ olx.View2DOptions.prototype.rotation; * the `ol.View#constrainResolution` method. * @type {number|undefined} */ -olx.View2DOptions.prototype.zoom; +olx.ViewOptions.prototype.zoom; /** * The zoom factor used to determine the resolution constraint. Default is `2`. * @type {number|undefined} */ -olx.View2DOptions.prototype.zoomFactor; +olx.ViewOptions.prototype.zoomFactor; /** diff --git a/src/ol/view.js b/src/ol/view.js index 320e6b4a65..a596b0d43a 100644 --- a/src/ol/view.js +++ b/src/ol/view.js @@ -82,14 +82,14 @@ ol.ViewHint = { * So the *resolution constraint* snaps to specific resolutions. It is * determined by the following options: `resolutions`, `maxResolution`, * `maxZoom`, and `zoomFactor`. If `resolutions` is set, the other three - * options are ignored. See {@link ol.View2DOptions} for more information. + * options are ignored. See {@link ol.ViewOptions} for more information. * * The *rotation constaint* is currently not configurable. It snaps the * rotation value to zero when approaching the horizontal. * * @constructor * @extends {ol.Object} - * @param {olx.View2DOptions=} opt_options View options. + * @param {olx.ViewOptions=} opt_options View options. * @todo api */ ol.View = function(opt_options) { @@ -654,7 +654,7 @@ ol.View.prototype.setZoom = function(zoom) { /** - * @param {olx.View2DOptions} options View options. + * @param {olx.ViewOptions} options View options. * @private * @return {ol.CenterConstraintType} */ @@ -669,7 +669,7 @@ ol.View.createCenterConstraint_ = function(options) { /** * @private - * @param {olx.View2DOptions} options View options. + * @param {olx.ViewOptions} options View options. * @return {{constraint: ol.ResolutionConstraintType, maxResolution: number, * minResolution: number}} */ @@ -751,7 +751,7 @@ ol.View.createResolutionConstraint_ = function(options) { /** * @private - * @param {olx.View2DOptions} options View options. + * @param {olx.ViewOptions} options View options. * @return {ol.RotationConstraintType} Rotation constraint. */ ol.View.createRotationConstraint_ = function(options) {