Example wording
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
---
|
---
|
||||||
layout: example.html
|
layout: example.html
|
||||||
title: PinchZoom
|
title: Pinch Zoom
|
||||||
shortdesc: A basic example for a pinch zoom with a restriction to integer zooms.
|
shortdesc: Restrict pinch zooming to integer zoom levels.
|
||||||
docs: >
|
docs: >
|
||||||
<p>Use a pinch zoom gesture to zoom the map.
|
By default, the `ol.interaction.PinchZoom` can leave the map at fractional zoom levels.
|
||||||
After the gesture the map will zoomed to the next whole-number zoom level with an animtation.</p>
|
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"
|
tags: "pinch, zoom, interaction"
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user