After upgrading from OpenLayers3 to OpenLayers4, the zooming has changed. Now the user can zoom to zoomlevels between integers. It does not look okay for some raster layers.
Good (same as source raster map):
Little bit zoomed by OpenLayers (looks blurred):
How can I turn off this zoom option?
Best Answer
Check
constrainResolution
option onol.interaction.PinchZoom
http://openlayers.org/en/latest/apidoc/module-ol_interaction_PinchZoom.htmlIf you want to set for
mouseWheelZoom
, just changeol.interaction.PinchZoom
tool.interaction.MouseWheelZoom
. plus,zoomDuration: 0
makes it no animation.