Fix interaction initialization for OL map

It looks that missing brackets were causing problems and sometimes method zoomTo on this.map was throwing error.
This commit is contained in:
Beatrycze Volk 2021-03-02 18:10:22 +01:00
parent 57353530a8
commit af2769e896
1 changed files with 1 additions and 1 deletions

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