Example wording
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user