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

@@ -5,7 +5,7 @@ import {inherits} from '../index.js';
import BaseObject from '../Object.js';
import LayerProperty from '../layer/Property.js';
import {clamp} from '../math.js';
import _ol_obj_ from '../obj.js';
import {assign} from '../obj.js';
/**
* @classdesc
@@ -28,7 +28,7 @@ const BaseLayer = function(options) {
/**
* @type {Object.<string, *>}
*/
const properties = _ol_obj_.assign({}, options);
const properties = assign({}, options);
properties[LayerProperty.OPACITY] =
options.opacity !== undefined ? options.opacity : 1;
properties[LayerProperty.VISIBLE] =