From d0c85850f5b21c83caaf642cbab8fdc32a9e00f2 Mon Sep 17 00:00:00 2001 From: Pierre GIRAUD Date: Mon, 17 Dec 2012 13:34:00 +0100 Subject: [PATCH] More detailed documentation --- lib/OpenLayers/Control/PinchZoom.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Control/PinchZoom.js b/lib/OpenLayers/Control/PinchZoom.js index e89fa287f6..f55d08e9fc 100644 --- a/lib/OpenLayers/Control/PinchZoom.js +++ b/lib/OpenLayers/Control/PinchZoom.js @@ -43,7 +43,12 @@ OpenLayers.Control.PinchZoom = OpenLayers.Class(OpenLayers.Control, { /** * APIProperty: preserveCenter - * {Boolean} Force the map center to stay in place. Default is false. + * {Boolean} Set this to true if you don't want the map center to change + * while pinching. For example you may want to set preserveCenter to + * true when the user location is being watched and you want to preserve + * the user location at the center of the map even if he zooms in or + * out using pinch. This property's value can be changed any time on an + * existing instance. Default is false. */ preserveCenter: false,