diff --git a/src/ol/View.js b/src/ol/View.js index 9e90ae780d..6d1bbe8eb4 100644 --- a/src/ol/View.js +++ b/src/ol/View.js @@ -2,7 +2,7 @@ * @module ol/View */ 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_Object_ from './Object.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_Units_ from './proj/Units.js'; + +/** + * @type {number} Default min zoom level for the map view. + */ +var DEFAULT_MIN_ZOOM = 0; + + /** * @classdesc * An ol.View object represents a simple 2D view of the map. diff --git a/src/ol/index.js b/src/ol/index.js index 2f787fd606..ac155f5e52 100644 --- a/src/ol/index.js +++ b/src/ol/index.js @@ -18,12 +18,6 @@ import webgl from './webgl.js'; 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 * reprojection triangulation. Default is `0.5`. @@ -264,7 +258,6 @@ export default { inherits: inherits, VERSION: VERSION, ASSUME_TOUCH: ASSUME_TOUCH, - DEFAULT_MIN_ZOOM: DEFAULT_MIN_ZOOM, DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD: DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD, DEFAULT_WMS_VERSION: DEFAULT_WMS_VERSION, ENABLE_CANVAS: ENABLE_CANVAS,