Move DEFAULT_MIN_ZOOM to the one place it is used
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* @module ol/View
|
* @module ol/View
|
||||||
*/
|
*/
|
||||||
import {DEFAULT_TILE_SIZE} from './tilegrid/common.js';
|
import {DEFAULT_TILE_SIZE} from './tilegrid/common.js';
|
||||||
import {DEFAULT_MIN_ZOOM, inherits, getUid, nullFunction} from './index.js';
|
import {inherits, getUid, nullFunction} from './index.js';
|
||||||
import _ol_CenterConstraint_ from './CenterConstraint.js';
|
import _ol_CenterConstraint_ from './CenterConstraint.js';
|
||||||
import _ol_Object_ from './Object.js';
|
import _ol_Object_ from './Object.js';
|
||||||
import _ol_ResolutionConstraint_ from './ResolutionConstraint.js';
|
import _ol_ResolutionConstraint_ from './ResolutionConstraint.js';
|
||||||
@@ -22,6 +22,13 @@ import _ol_obj_ from './obj.js';
|
|||||||
import _ol_proj_ from './proj.js';
|
import _ol_proj_ from './proj.js';
|
||||||
import _ol_proj_Units_ from './proj/Units.js';
|
import _ol_proj_Units_ from './proj/Units.js';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {number} Default min zoom level for the map view.
|
||||||
|
*/
|
||||||
|
var DEFAULT_MIN_ZOOM = 0;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @classdesc
|
* @classdesc
|
||||||
* An ol.View object represents a simple 2D view of the map.
|
* An ol.View object represents a simple 2D view of the map.
|
||||||
|
|||||||
@@ -18,12 +18,6 @@ import webgl from './webgl.js';
|
|||||||
export var ASSUME_TOUCH = false;
|
export var ASSUME_TOUCH = false;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {number} Default min zoom level for the map view. Default is `0`.
|
|
||||||
*/
|
|
||||||
export var DEFAULT_MIN_ZOOM = 0;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {number} Default maximum allowed threshold (in pixels) for
|
* @type {number} Default maximum allowed threshold (in pixels) for
|
||||||
* reprojection triangulation. Default is `0.5`.
|
* reprojection triangulation. Default is `0.5`.
|
||||||
@@ -264,7 +258,6 @@ export default {
|
|||||||
inherits: inherits,
|
inherits: inherits,
|
||||||
VERSION: VERSION,
|
VERSION: VERSION,
|
||||||
ASSUME_TOUCH: ASSUME_TOUCH,
|
ASSUME_TOUCH: ASSUME_TOUCH,
|
||||||
DEFAULT_MIN_ZOOM: DEFAULT_MIN_ZOOM,
|
|
||||||
DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD: DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD,
|
DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD: DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD,
|
||||||
DEFAULT_WMS_VERSION: DEFAULT_WMS_VERSION,
|
DEFAULT_WMS_VERSION: DEFAULT_WMS_VERSION,
|
||||||
ENABLE_CANVAS: ENABLE_CANVAS,
|
ENABLE_CANVAS: ENABLE_CANVAS,
|
||||||
|
|||||||
Reference in New Issue
Block a user