diff --git a/examples/pinch-zoom.html b/examples/pinch-zoom.html new file mode 100644 index 0000000000..ca434a64fd --- /dev/null +++ b/examples/pinch-zoom.html @@ -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 + constrainResolution: true when constructing the interaction. +tags: "pinch, zoom, interaction" +--- +
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 diff --git a/examples/pinchZoom.html b/examples/pinchZoom.html deleted file mode 100644 index d7056048a1..0000000000 --- a/examples/pinchZoom.html +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: example.html -title: PinchZoom -shortdesc: A basic example for a pinch zoom with a restriction to integer zooms. -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.

-tags: "pinch, zoom, interaction" ---- -