Named export for ol/control

This commit is contained in:
Frederic Junod
2017-12-17 18:53:50 +01:00
parent db3e885076
commit da67764437
39 changed files with 78 additions and 80 deletions

View File

@@ -4,7 +4,7 @@
import {inherits} from './index.js';
import _ol_PluggableMap_ from './PluggableMap.js';
import _ol_PluginType_ from './PluginType.js';
import _ol_control_ from './control.js';
import {defaults as defaultControls} from './control.js';
import _ol_interaction_ from './interaction.js';
import _ol_obj_ from './obj.js';
import _ol_plugins_ from './plugins.js';
@@ -87,7 +87,7 @@ _ol_plugins_.registerMultiple(_ol_PluginType_.LAYER_RENDERER, [
var _ol_Map_ = function(options) {
options = _ol_obj_.assign({}, options);
if (!options.controls) {
options.controls = _ol_control_.defaults();
options.controls = defaultControls();
}
if (!options.interactions) {
options.interactions = _ol_interaction_.defaults();