Merge pull request #4272 from adube/fix-interactiondefaults-zoomduration
Allow the DragZoom interaction created in defaults to use zoomDuration option.
This commit is contained in:
@@ -103,7 +103,9 @@ 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 ol.interaction.DragZoom({
|
||||
duration: options.zoomDuration
|
||||
}));
|
||||
}
|
||||
|
||||
return interactions;
|
||||
|
||||
Reference in New Issue
Block a user