Move DEFAULT_WMS_VERSION to a common source module

This commit is contained in:
Tim Schaub
2017-12-12 17:40:13 -07:00
parent f403a06967
commit ed5b28f366
4 changed files with 8 additions and 9 deletions

View File

@@ -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,

View File

@@ -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';

View File

@@ -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';

4
src/ol/source/common.js Normal file
View File

@@ -0,0 +1,4 @@
/**
* @type {string} Default WMS version.
*/
export var DEFAULT_WMS_VERSION = '1.3.0';