--- layout: example.html title: Mousewheel/Trackpad Zoom shortdesc: Restrict wheel/trackpad zooming to integer zoom levels. docs: > By default, the `ol.interaction.MouseWheelZoom` can leave the map at fractional zoom levels. If instead you want to constrain wheel/trackpad zooming to integer zoom levels, set `constrainResolution: true` when constructing the interaction. tags: "trackpad, mousewheel, zoom, interaction" ---