From 8d5042c1b110d07fb0a0669c3f0c7c2a70cfe3c9 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 9 Dec 2016 10:24:55 -0700 Subject: [PATCH 1/2] Dash as word separators in URLs for consistency --- examples/{pinchZoom.html => pinch-zoom.html} | 0 examples/{pinchZoom.js => pinch-zoom.js} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename examples/{pinchZoom.html => pinch-zoom.html} (100%) rename examples/{pinchZoom.js => pinch-zoom.js} (100%) diff --git a/examples/pinchZoom.html b/examples/pinch-zoom.html similarity index 100% rename from examples/pinchZoom.html rename to examples/pinch-zoom.html diff --git a/examples/pinchZoom.js b/examples/pinch-zoom.js similarity index 100% rename from examples/pinchZoom.js rename to examples/pinch-zoom.js From 2bb61dab60cd1337b3c4cc8a338e2de8fb076d82 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 9 Dec 2016 10:32:06 -0700 Subject: [PATCH 2/2] Example wording --- examples/pinch-zoom.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/pinch-zoom.html b/examples/pinch-zoom.html index d7056048a1..ca434a64fd 100644 --- a/examples/pinch-zoom.html +++ b/examples/pinch-zoom.html @@ -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: > -

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.

+ 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 + constrainResolution: true when constructing the interaction. tags: "pinch, zoom, interaction" ---