Example wording

This commit is contained in:
Tim Schaub
2016-12-09 10:32:06 -07:00
parent 8d5042c1b1
commit 2bb61dab60

View File

@@ -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: >
<p>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.</p>
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
<code>constrainResolution: true</code> when constructing the interaction.
tags: "pinch, zoom, interaction"
---
<div id="map" class="map"></div>