diff --git a/examples/pinch-zoom.html b/examples/pinch-zoom.html index d7056048a1..ca434a64fd 100644 --- a/examples/pinch-zoom.html +++ b/examples/pinch-zoom.html @@ -1,10 +1,11 @@ --- layout: example.html -title: PinchZoom -shortdesc: A basic example for a pinch zoom with a restriction to integer zooms. +title: Pinch Zoom +shortdesc: Restrict pinch zooming to integer zoom levels. docs: > -

Use a pinch zoom gesture to zoom the map. - After the gesture the map will zoomed to the next whole-number zoom level with an animtation.

+ By default, the `ol.interaction.PinchZoom` can leave the map at fractional zoom levels. + If instead you want to constrain pinch zooming to integer zoom levels, set + constrainResolution: true when constructing the interaction. tags: "pinch, zoom, interaction" ---