I am trying to change the maxZoom parameter after activating the map functionality. Thus, it must be at run time so that it can be dropped to the original maxZoom.
By creating ol.View, you configure these settings as follows:
new ol.View({
...
zoom: 10,
maxZoom: 17,
minZoom: 10,
});
however api allows you to zoom using setZoom ()
source
share