Move DEFAULT_WMS_VERSION to a common source module
This commit is contained in:
@@ -5,12 +5,6 @@
|
|||||||
import webgl from './webgl.js';
|
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`.
|
* @type {boolean} Include debuggable shader sources. Default is `true`.
|
||||||
* This should be set to `false` for production builds.
|
* This should be set to `false` for production builds.
|
||||||
@@ -128,7 +122,6 @@ export default {
|
|||||||
nullFunction: nullFunction,
|
nullFunction: nullFunction,
|
||||||
inherits: inherits,
|
inherits: inherits,
|
||||||
VERSION: VERSION,
|
VERSION: VERSION,
|
||||||
DEFAULT_WMS_VERSION: DEFAULT_WMS_VERSION,
|
|
||||||
DEBUG_WEBGL: DEBUG_WEBGL,
|
DEBUG_WEBGL: DEBUG_WEBGL,
|
||||||
HAS_WEBGL: HAS_WEBGL,
|
HAS_WEBGL: HAS_WEBGL,
|
||||||
WEBGL_MAX_TEXTURE_SIZE: WEBGL_MAX_TEXTURE_SIZE,
|
WEBGL_MAX_TEXTURE_SIZE: WEBGL_MAX_TEXTURE_SIZE,
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
* @module ol/source/ImageWMS
|
* @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_Image_ from '../Image.js';
|
||||||
import _ol_asserts_ from '../asserts.js';
|
import _ol_asserts_ from '../asserts.js';
|
||||||
import _ol_events_ from '../events.js';
|
import _ol_events_ from '../events.js';
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
* @module ol/source/TileWMS
|
* @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_asserts_ from '../asserts.js';
|
||||||
import _ol_extent_ from '../extent.js';
|
import _ol_extent_ from '../extent.js';
|
||||||
import _ol_obj_ from '../obj.js';
|
import _ol_obj_ from '../obj.js';
|
||||||
|
|||||||
4
src/ol/source/common.js
Normal file
4
src/ol/source/common.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
/**
|
||||||
|
* @type {string} Default WMS version.
|
||||||
|
*/
|
||||||
|
export var DEFAULT_WMS_VERSION = '1.3.0';
|
||||||
Reference in New Issue
Block a user