1 | ---
|
2 | layout: example.html
|
3 | title: Pinch Zoom
|
4 | shortdesc: Restrict pinch zooming to integer zoom levels.
|
5 | docs: >
|
6 | By default, the `ol.interaction.PinchZoom` can leave the map at fractional zoom levels.
|
7 | If instead you want to constrain pinch zooming to integer zoom levels, set
|
8 | <code>constrainResolution: true</code> when constructing the interaction.
|
9 | tags: "pinch, zoom, interaction"
|
10 | ---
|
11 | <div id="map" class="map"></div>
|