Browse Source

Fix interaction initialization for OL map

It looks that missing brackets were causing problems and sometimes method zoomTo on this.map was throwing error.
pull/602/head
Beatrycze Volk 2 years ago
parent
commit
af2769e896
  1. 2
      Resources/Public/Javascript/PageView/PageView.js

2
Resources/Public/Javascript/PageView/PageView.js

@ -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

Loading…
Cancel
Save