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

@@ -6,7 +6,7 @@ import _ol_Image_ from '../Image.js';
import _ol_events_ from '../events.js';
import EventType from '../events/EventType.js';
import {containsExtent, getCenter, getHeight, getWidth, scaleFromCenter} 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';
@@ -193,7 +193,7 @@ ImageMapGuide.getScale = function(extent, size, metersPerUnit, dpi) {
* @api
*/
ImageMapGuide.prototype.updateParams = function(params) {
_ol_obj_.assign(this.params_, params);
assign(this.params_, params);
this.changed();
};
@@ -223,7 +223,7 @@ ImageMapGuide.prototype.getUrl = function(baseUrl, params, extent, size, project
'SETVIEWCENTERX': center[0],
'SETVIEWCENTERY': center[1]
};
_ol_obj_.assign(baseParams, params);
assign(baseParams, params);
return appendParams(baseUrl, baseParams);
};