Rename olx.View2DOptions to olx.ViewOptions
This commit is contained in:
@@ -370,7 +370,7 @@ olx.ProjectionOptions.prototype.global;
|
|||||||
* zoomFactor: (number|undefined)}}
|
* zoomFactor: (number|undefined)}}
|
||||||
* @todo api
|
* @todo api
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions;
|
olx.ViewOptions;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -379,7 +379,7 @@ olx.View2DOptions;
|
|||||||
* sources will not be fetched if this is not set.
|
* sources will not be fetched if this is not set.
|
||||||
* @type {ol.Coordinate|undefined}
|
* @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`.
|
* 270 degrees. The default is `true`.
|
||||||
* @type {boolean|number|undefined}
|
* @type {boolean|number|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.constrainRotation;
|
olx.ViewOptions.prototype.constrainRotation;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable rotation. Default is `true`.
|
* Enable rotation. Default is `true`.
|
||||||
* @type {boolean|undefined}
|
* @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`.
|
* outside this extent. Default is `undefined`.
|
||||||
* @type {ol.Extent|undefined}
|
* @type {ol.Extent|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.extent;
|
olx.ViewOptions.prototype.extent;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -416,7 +416,7 @@ olx.View2DOptions.prototype.extent;
|
|||||||
* 156543.03392804097`.
|
* 156543.03392804097`.
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.maxResolution;
|
olx.ViewOptions.prototype.maxResolution;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -428,7 +428,7 @@ olx.View2DOptions.prototype.maxResolution;
|
|||||||
* 0.0005831682455839253`.
|
* 0.0005831682455839253`.
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.minResolution;
|
olx.ViewOptions.prototype.minResolution;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -438,7 +438,7 @@ olx.View2DOptions.prototype.minResolution;
|
|||||||
* precedence over `maxZoom`.
|
* precedence over `maxZoom`.
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.maxZoom;
|
olx.ViewOptions.prototype.maxZoom;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -448,14 +448,14 @@ olx.View2DOptions.prototype.maxZoom;
|
|||||||
* precedence over `minZoom`.
|
* precedence over `minZoom`.
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.minZoom;
|
olx.ViewOptions.prototype.minZoom;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The projection. Default is `EPSG:3857` (Spherical Mercator).
|
* The projection. Default is `EPSG:3857` (Spherical Mercator).
|
||||||
* @type {ol.proj.ProjectionLike}
|
* @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.
|
* neither this nor `zoom` are defined.
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.resolution;
|
olx.ViewOptions.prototype.resolution;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -474,7 +474,7 @@ olx.View2DOptions.prototype.resolution;
|
|||||||
* options are ignored.
|
* options are ignored.
|
||||||
* @type {Array.<number>|undefined}
|
* @type {Array.<number>|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.resolutions;
|
olx.ViewOptions.prototype.resolutions;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -482,7 +482,7 @@ olx.View2DOptions.prototype.resolutions;
|
|||||||
* Default is `0`.
|
* Default is `0`.
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.rotation;
|
olx.ViewOptions.prototype.rotation;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -491,14 +491,14 @@ olx.View2DOptions.prototype.rotation;
|
|||||||
* the `ol.View#constrainResolution` method.
|
* the `ol.View#constrainResolution` method.
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.zoom;
|
olx.ViewOptions.prototype.zoom;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The zoom factor used to determine the resolution constraint. Default is `2`.
|
* The zoom factor used to determine the resolution constraint. Default is `2`.
|
||||||
* @type {number|undefined}
|
* @type {number|undefined}
|
||||||
*/
|
*/
|
||||||
olx.View2DOptions.prototype.zoomFactor;
|
olx.ViewOptions.prototype.zoomFactor;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -82,14 +82,14 @@ ol.ViewHint = {
|
|||||||
* So the *resolution constraint* snaps to specific resolutions. It is
|
* So the *resolution constraint* snaps to specific resolutions. It is
|
||||||
* determined by the following options: `resolutions`, `maxResolution`,
|
* determined by the following options: `resolutions`, `maxResolution`,
|
||||||
* `maxZoom`, and `zoomFactor`. If `resolutions` is set, the other three
|
* `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
|
* The *rotation constaint* is currently not configurable. It snaps the
|
||||||
* rotation value to zero when approaching the horizontal.
|
* rotation value to zero when approaching the horizontal.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.Object}
|
* @extends {ol.Object}
|
||||||
* @param {olx.View2DOptions=} opt_options View options.
|
* @param {olx.ViewOptions=} opt_options View options.
|
||||||
* @todo api
|
* @todo api
|
||||||
*/
|
*/
|
||||||
ol.View = function(opt_options) {
|
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
|
* @private
|
||||||
* @return {ol.CenterConstraintType}
|
* @return {ol.CenterConstraintType}
|
||||||
*/
|
*/
|
||||||
@@ -669,7 +669,7 @@ ol.View.createCenterConstraint_ = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @param {olx.View2DOptions} options View options.
|
* @param {olx.ViewOptions} options View options.
|
||||||
* @return {{constraint: ol.ResolutionConstraintType, maxResolution: number,
|
* @return {{constraint: ol.ResolutionConstraintType, maxResolution: number,
|
||||||
* minResolution: number}}
|
* minResolution: number}}
|
||||||
*/
|
*/
|
||||||
@@ -751,7 +751,7 @@ ol.View.createResolutionConstraint_ = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @param {olx.View2DOptions} options View options.
|
* @param {olx.ViewOptions} options View options.
|
||||||
* @return {ol.RotationConstraintType} Rotation constraint.
|
* @return {ol.RotationConstraintType} Rotation constraint.
|
||||||
*/
|
*/
|
||||||
ol.View.createRotationConstraint_ = function(options) {
|
ol.View.createRotationConstraint_ = function(options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user