Merge pull request #602 from beatrycze-volk/fix-initalization

Fix interaction initialization for OL map
This commit is contained in:
Sebastian Meyer 2021-03-04 09:31:17 +01:00 committed by GitHub
commit 00289bd319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ dlfViewerImageManipulationControl.prototype.createMap_ = function() {
new ol.interaction.PinchZoom(),
new ol.interaction.MouseWheelZoom(),
new ol.interaction.KeyboardPan(),
new ol.interaction.KeyboardZoom,
new ol.interaction.KeyboardZoom(),
new ol.interaction.DragRotateAndZoom()
],
// necessary for proper working of the keyboard events

View File

@ -397,7 +397,7 @@ dlfViewer.prototype.init = function(controlNames) {
new ol.interaction.PinchZoom(),
new ol.interaction.MouseWheelZoom(),
new ol.interaction.KeyboardPan(),
new ol.interaction.KeyboardZoom,
new ol.interaction.KeyboardZoom(),
new ol.interaction.DragRotateAndZoom()
],
// necessary for proper working of the keyboard events