Named exports from ol/obj

This commit is contained in:
Frederic Junod
2018-01-16 14:14:17 +01:00
parent 40f97eed85
commit 31e30d28b7
60 changed files with 174 additions and 183 deletions

View File

@@ -7,7 +7,7 @@ import {assert} from '../asserts.js';
import _ol_events_ from '../events.js';
import EventType from '../events/EventType.js';
import {containsExtent, getHeight, getWidth} from '../extent.js';
import _ol_obj_ from '../obj.js';
import {assign} from '../obj.js';
import ImageSource from '../source/Image.js';
import {appendParams} from '../uri.js';
@@ -136,7 +136,7 @@ ImageArcGISRest.prototype.getImageInternal = function(extent, resolution, pixelR
'FORMAT': 'PNG32',
'TRANSPARENT': true
};
_ol_obj_.assign(params, this.params_);
assign(params, this.params_);
extent = extent.slice();
const centerX = (extent[0] + extent[2]) / 2;
@@ -264,7 +264,7 @@ ImageArcGISRest.prototype.setUrl = function(url) {
* @api
*/
ImageArcGISRest.prototype.updateParams = function(params) {
_ol_obj_.assign(this.params_, params);
assign(this.params_, params);
this.image_ = null;
this.changed();
};