Merge pull request #6228 from tschaub/rename-example

Rename the pinch zoom example
This commit is contained in:
Tim Schaub
2016-12-09 12:42:49 -07:00
committed by GitHub
3 changed files with 11 additions and 10 deletions

11
examples/pinch-zoom.html Normal file
View File

@@ -0,0 +1,11 @@
---
layout: example.html
title: Pinch Zoom
shortdesc: Restrict pinch zooming to integer zoom levels.
docs: >
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>

View File

@@ -1,10 +0,0 @@
---
layout: example.html
title: PinchZoom
shortdesc: A basic example for a pinch zoom with a restriction to integer zooms.
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>
tags: "pinch, zoom, interaction"
---
<div id="map" class="map"></div>