Rename _ol_interaction_DragZoom_ to DragZoom
This commit is contained in:
@@ -6,7 +6,7 @@ import _ol_Kinetic_ from './Kinetic.js';
|
||||
import DoubleClickZoom from './interaction/DoubleClickZoom.js';
|
||||
import DragPan from './interaction/DragPan.js';
|
||||
import DragRotate from './interaction/DragRotate.js';
|
||||
import _ol_interaction_DragZoom_ from './interaction/DragZoom.js';
|
||||
import DragZoom from './interaction/DragZoom.js';
|
||||
import _ol_interaction_KeyboardPan_ from './interaction/KeyboardPan.js';
|
||||
import _ol_interaction_KeyboardZoom_ from './interaction/KeyboardZoom.js';
|
||||
import _ol_interaction_MouseWheelZoom_ from './interaction/MouseWheelZoom.js';
|
||||
@@ -103,7 +103,7 @@ _ol_interaction_.defaults = function(opt_options) {
|
||||
var shiftDragZoom = options.shiftDragZoom !== undefined ?
|
||||
options.shiftDragZoom : true;
|
||||
if (shiftDragZoom) {
|
||||
interactions.push(new _ol_interaction_DragZoom_({
|
||||
interactions.push(new DragZoom({
|
||||
duration: options.zoomDuration
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import DragBox from '../interaction/DragBox.js';
|
||||
* @param {olx.interaction.DragZoomOptions=} opt_options Options.
|
||||
* @api
|
||||
*/
|
||||
var _ol_interaction_DragZoom_ = function(opt_options) {
|
||||
var DragZoom = function(opt_options) {
|
||||
var options = opt_options ? opt_options : {};
|
||||
|
||||
var condition = options.condition ?
|
||||
@@ -46,13 +46,13 @@ var _ol_interaction_DragZoom_ = function(opt_options) {
|
||||
|
||||
};
|
||||
|
||||
inherits(_ol_interaction_DragZoom_, DragBox);
|
||||
inherits(DragZoom, DragBox);
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_interaction_DragZoom_.prototype.onBoxEnd = function() {
|
||||
DragZoom.prototype.onBoxEnd = function() {
|
||||
var map = this.getMap();
|
||||
|
||||
var view = /** @type {!ol.View} */ (map.getView());
|
||||
@@ -86,4 +86,4 @@ _ol_interaction_DragZoom_.prototype.onBoxEnd = function() {
|
||||
});
|
||||
|
||||
};
|
||||
export default _ol_interaction_DragZoom_;
|
||||
export default DragZoom;
|
||||
|
||||
Reference in New Issue
Block a user