Merge pull request #602 from beatrycze-volk/fix-initalization
Fix interaction initialization for OL map
This commit is contained in:
commit
00289bd319
|
@ -293,7 +293,7 @@ dlfViewerImageManipulationControl.prototype.createMap_ = function() {
|
||||||
new ol.interaction.PinchZoom(),
|
new ol.interaction.PinchZoom(),
|
||||||
new ol.interaction.MouseWheelZoom(),
|
new ol.interaction.MouseWheelZoom(),
|
||||||
new ol.interaction.KeyboardPan(),
|
new ol.interaction.KeyboardPan(),
|
||||||
new ol.interaction.KeyboardZoom,
|
new ol.interaction.KeyboardZoom(),
|
||||||
new ol.interaction.DragRotateAndZoom()
|
new ol.interaction.DragRotateAndZoom()
|
||||||
],
|
],
|
||||||
// necessary for proper working of the keyboard events
|
// necessary for proper working of the keyboard events
|
||||||
|
|
|
@ -397,7 +397,7 @@ dlfViewer.prototype.init = function(controlNames) {
|
||||||
new ol.interaction.PinchZoom(),
|
new ol.interaction.PinchZoom(),
|
||||||
new ol.interaction.MouseWheelZoom(),
|
new ol.interaction.MouseWheelZoom(),
|
||||||
new ol.interaction.KeyboardPan(),
|
new ol.interaction.KeyboardPan(),
|
||||||
new ol.interaction.KeyboardZoom,
|
new ol.interaction.KeyboardZoom(),
|
||||||
new ol.interaction.DragRotateAndZoom()
|
new ol.interaction.DragRotateAndZoom()
|
||||||
],
|
],
|
||||||
// necessary for proper working of the keyboard events
|
// necessary for proper working of the keyboard events
|
||||||
|
|
Loading…
Reference in New Issue