Named exports from ol/string

This commit is contained in:
Frederic Junod
2018-01-19 15:38:21 +01:00
parent 6385f615c9
commit a114f64429
6 changed files with 64 additions and 66 deletions

View File

@@ -14,7 +14,7 @@ import {get as getProjection, transform} from '../proj.js';
import _ol_reproj_ from '../reproj.js';
import ImageSource from '../source/Image.js';
import WMSServerType from '../source/WMSServerType.js';
import _ol_string_ from '../string.js';
import {compareVersions} from '../string.js';
import {appendParams} from '../uri.js';
/**
@@ -367,6 +367,6 @@ ImageWMS.prototype.updateParams = function(params) {
*/
ImageWMS.prototype.updateV13_ = function() {
const version = this.params_['VERSION'] || DEFAULT_WMS_VERSION;
this.v13_ = _ol_string_.compareVersions(version, '1.3') >= 0;
this.v13_ = compareVersions(version, '1.3') >= 0;
};
export default ImageWMS;