diff --git a/src/ol/index.js b/src/ol/index.js index 04be982456..c82cf5a2ae 100644 --- a/src/ol/index.js +++ b/src/ol/index.js @@ -5,12 +5,6 @@ import webgl from './webgl.js'; -/** - * @type {string} Default WMS version. - */ -export var DEFAULT_WMS_VERSION = '1.3.0'; - - /** * @type {boolean} Include debuggable shader sources. Default is `true`. * This should be set to `false` for production builds. @@ -128,7 +122,6 @@ export default { nullFunction: nullFunction, inherits: inherits, VERSION: VERSION, - DEFAULT_WMS_VERSION: DEFAULT_WMS_VERSION, DEBUG_WEBGL: DEBUG_WEBGL, HAS_WEBGL: HAS_WEBGL, WEBGL_MAX_TEXTURE_SIZE: WEBGL_MAX_TEXTURE_SIZE, diff --git a/src/ol/source/ImageWMS.js b/src/ol/source/ImageWMS.js index 74a7d46274..98fa89fab9 100644 --- a/src/ol/source/ImageWMS.js +++ b/src/ol/source/ImageWMS.js @@ -2,7 +2,8 @@ * @module ol/source/ImageWMS */ -import {DEFAULT_WMS_VERSION, inherits} from '../index.js'; +import {DEFAULT_WMS_VERSION} from './common.js'; +import {inherits} from '../index.js'; import _ol_Image_ from '../Image.js'; import _ol_asserts_ from '../asserts.js'; import _ol_events_ from '../events.js'; diff --git a/src/ol/source/TileWMS.js b/src/ol/source/TileWMS.js index 1a63818b98..a03a4f718e 100644 --- a/src/ol/source/TileWMS.js +++ b/src/ol/source/TileWMS.js @@ -2,7 +2,8 @@ * @module ol/source/TileWMS */ -import {DEFAULT_WMS_VERSION, inherits} from '../index.js'; +import {DEFAULT_WMS_VERSION} from './common.js'; +import {inherits} from '../index.js'; import _ol_asserts_ from '../asserts.js'; import _ol_extent_ from '../extent.js'; import _ol_obj_ from '../obj.js'; diff --git a/src/ol/source/common.js b/src/ol/source/common.js new file mode 100644 index 0000000000..a20bbd8c85 --- /dev/null +++ b/src/ol/source/common.js @@ -0,0 +1,4 @@ +/** + * @type {string} Default WMS version. + */ +export var DEFAULT_WMS_VERSION = '1.3.0';