Use named exports from ol/index.js
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
/**
|
||||
* @module ol/source/ImageWMS
|
||||
*/
|
||||
// FIXME cannot be shared between maps with different projections
|
||||
|
||||
import _ol_ from '../index.js';
|
||||
import {DEFAULT_WMS_VERSION, inherits} from '../index.js';
|
||||
import _ol_Image_ from '../Image.js';
|
||||
import _ol_asserts_ from '../asserts.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
@@ -109,7 +108,7 @@ var _ol_source_ImageWMS_ = function(opt_options) {
|
||||
|
||||
};
|
||||
|
||||
_ol_.inherits(_ol_source_ImageWMS_, _ol_source_Image_);
|
||||
inherits(_ol_source_ImageWMS_, _ol_source_Image_);
|
||||
|
||||
|
||||
/**
|
||||
@@ -152,7 +151,7 @@ _ol_source_ImageWMS_.prototype.getGetFeatureInfoUrl = function(coordinate, resol
|
||||
|
||||
var baseParams = {
|
||||
'SERVICE': 'WMS',
|
||||
'VERSION': _ol_.DEFAULT_WMS_VERSION,
|
||||
'VERSION': DEFAULT_WMS_VERSION,
|
||||
'REQUEST': 'GetFeatureInfo',
|
||||
'FORMAT': 'image/png',
|
||||
'TRANSPARENT': true,
|
||||
@@ -220,7 +219,7 @@ _ol_source_ImageWMS_.prototype.getImageInternal = function(extent, resolution, p
|
||||
|
||||
var params = {
|
||||
'SERVICE': 'WMS',
|
||||
'VERSION': _ol_.DEFAULT_WMS_VERSION,
|
||||
'VERSION': DEFAULT_WMS_VERSION,
|
||||
'REQUEST': 'GetMap',
|
||||
'FORMAT': 'image/png',
|
||||
'TRANSPARENT': true
|
||||
@@ -368,7 +367,7 @@ _ol_source_ImageWMS_.prototype.updateParams = function(params) {
|
||||
* @private
|
||||
*/
|
||||
_ol_source_ImageWMS_.prototype.updateV13_ = function() {
|
||||
var version = this.params_['VERSION'] || _ol_.DEFAULT_WMS_VERSION;
|
||||
var version = this.params_['VERSION'] || DEFAULT_WMS_VERSION;
|
||||
this.v13_ = _ol_string_.compareVersions(version, '1.3') >= 0;
|
||||
};
|
||||
export default _ol_source_ImageWMS_;
|
||||
|
||||
Reference in New Issue
Block a user