Named export for ol/interaction
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ import {inherits} from './index.js';
|
||||
import _ol_PluggableMap_ from './PluggableMap.js';
|
||||
import _ol_PluginType_ from './PluginType.js';
|
||||
import {defaults as defaultControls} from './control.js';
|
||||
import _ol_interaction_ from './interaction.js';
|
||||
import {defaults as defaultInteractions} from './interaction.js';
|
||||
import _ol_obj_ from './obj.js';
|
||||
import _ol_plugins_ from './plugins.js';
|
||||
import _ol_renderer_canvas_ImageLayer_ from './renderer/canvas/ImageLayer.js';
|
||||
@@ -79,7 +79,7 @@ var _ol_CanvasMap_ = function(options) {
|
||||
options.controls = defaultControls();
|
||||
}
|
||||
if (!options.interactions) {
|
||||
options.interactions = _ol_interaction_.defaults();
|
||||
options.interactions = defaultInteractions();
|
||||
}
|
||||
|
||||
_ol_PluggableMap_.call(this, options);
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@ import {inherits} from './index.js';
|
||||
import _ol_PluggableMap_ from './PluggableMap.js';
|
||||
import _ol_PluginType_ from './PluginType.js';
|
||||
import {defaults as defaultControls} from './control.js';
|
||||
import _ol_interaction_ from './interaction.js';
|
||||
import {defaults as defaultInteractions} from './interaction.js';
|
||||
import _ol_obj_ from './obj.js';
|
||||
import _ol_plugins_ from './plugins.js';
|
||||
import _ol_renderer_canvas_ImageLayer_ from './renderer/canvas/ImageLayer.js';
|
||||
@@ -90,7 +90,7 @@ var _ol_Map_ = function(options) {
|
||||
options.controls = defaultControls();
|
||||
}
|
||||
if (!options.interactions) {
|
||||
options.interactions = _ol_interaction_.defaults();
|
||||
options.interactions = defaultInteractions();
|
||||
}
|
||||
|
||||
_ol_PluggableMap_.call(this, options);
|
||||
|
||||
@@ -12,7 +12,6 @@ import _ol_interaction_KeyboardZoom_ from './interaction/KeyboardZoom.js';
|
||||
import _ol_interaction_MouseWheelZoom_ from './interaction/MouseWheelZoom.js';
|
||||
import _ol_interaction_PinchRotate_ from './interaction/PinchRotate.js';
|
||||
import _ol_interaction_PinchZoom_ from './interaction/PinchZoom.js';
|
||||
var _ol_interaction_ = {};
|
||||
|
||||
|
||||
/**
|
||||
@@ -38,7 +37,7 @@ var _ol_interaction_ = {};
|
||||
* interactions to be used with the ol.Map constructor's interactions option.
|
||||
* @api
|
||||
*/
|
||||
_ol_interaction_.defaults = function(opt_options) {
|
||||
export function defaults(opt_options) {
|
||||
|
||||
var options = opt_options ? opt_options : {};
|
||||
|
||||
@@ -110,5 +109,4 @@ _ol_interaction_.defaults = function(opt_options) {
|
||||
|
||||
return interactions;
|
||||
|
||||
};
|
||||
export default _ol_interaction_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user