Remove DragZoom from default interactions

As it only works with canvas renderer.
This commit is contained in:
Antoine Abt
2013-12-19 16:02:30 +01:00
parent adfe20dd12
commit c2330b9786
2 changed files with 0 additions and 9 deletions

View File

@@ -342,8 +342,6 @@
* desired. Default is `true`. * desired. Default is `true`.
* @property {boolean|undefined} mouseWheelZoom Whether mousewheel zoom is * @property {boolean|undefined} mouseWheelZoom Whether mousewheel zoom is
* desired. Default is `true`. * desired. Default is `true`.
* @property {boolean|undefined} shiftDragZoom Whether Shift-drag zoom is
* desired. Default is `true`.
* @property {boolean|undefined} touchPan Whether touch pan is * @property {boolean|undefined} touchPan Whether touch pan is
* desired. Default is `true`. * desired. Default is `true`.
* @property {boolean|undefined} touchRotate Whether touch rotate is desired. Default is `true`. * @property {boolean|undefined} touchRotate Whether touch rotate is desired. Default is `true`.

View File

@@ -5,7 +5,6 @@ goog.require('ol.Kinetic');
goog.require('ol.interaction.DoubleClickZoom'); goog.require('ol.interaction.DoubleClickZoom');
goog.require('ol.interaction.DragPan'); goog.require('ol.interaction.DragPan');
goog.require('ol.interaction.DragRotate'); goog.require('ol.interaction.DragRotate');
goog.require('ol.interaction.DragZoom');
goog.require('ol.interaction.KeyboardPan'); goog.require('ol.interaction.KeyboardPan');
goog.require('ol.interaction.KeyboardZoom'); goog.require('ol.interaction.KeyboardZoom');
goog.require('ol.interaction.MouseWheelZoom'); goog.require('ol.interaction.MouseWheelZoom');
@@ -99,12 +98,6 @@ ol.interaction.defaults = function(opt_options) {
})); }));
} }
var shiftDragZoom = goog.isDef(options.shiftDragZoom) ?
options.shiftDragZoom : true;
if (shiftDragZoom) {
interactions.push(new ol.interaction.DragZoom());
}
return interactions; return interactions;
}; };