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 _ol_size_ from '../size.js';
import TileImage from '../source/TileImage.js';
import WMSServerType from '../source/WMSServerType.js';
import _ol_tilecoord_ from '../tilecoord.js';
import _ol_string_ from '../string.js';
import {compareVersions} from '../string.js';
import {appendParams} from '../uri.js';
/**
@@ -340,6 +340,6 @@ TileWMS.prototype.updateParams = function(params) {
*/
TileWMS.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 TileWMS;