From d89819c3f246894b410048ee8e60c87b1229b920 Mon Sep 17 00:00:00 2001 From: Xavier Mamano Date: Sun, 20 Nov 2011 12:25:01 +0100 Subject: [PATCH] #3580 ZoomBox: missing API documentation. --- lib/OpenLayers/Control/Navigation.js | 2 +- lib/OpenLayers/Control/ZoomBox.js | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Control/Navigation.js b/lib/OpenLayers/Control/Navigation.js index ae61145291..946f1f96f2 100644 --- a/lib/OpenLayers/Control/Navigation.js +++ b/lib/OpenLayers/Control/Navigation.js @@ -94,7 +94,7 @@ OpenLayers.Control.Navigation = OpenLayers.Class(OpenLayers.Control, { * You should probably set handleRightClicks to true if you use this * with MOD_CTRL, to disable the context menu for machines which use * CTRL-Click as a right click. - * Default: */ zoomBoxKeyMask: OpenLayers.Handler.MOD_SHIFT, diff --git a/lib/OpenLayers/Control/ZoomBox.js b/lib/OpenLayers/Control/ZoomBox.js index 9cdee9180e..3846d2fdff 100644 --- a/lib/OpenLayers/Control/ZoomBox.js +++ b/lib/OpenLayers/Control/ZoomBox.js @@ -31,7 +31,16 @@ OpenLayers.Control.ZoomBox = OpenLayers.Class(OpenLayers.Control, { out: false, /** - * Property: alwaysZoom + * APIProperty: keyMask + * {Integer} Zoom only occurs if the keyMask matches the combination of + * keys down. Use bitwise operators and one or more of the + * constants to construct a keyMask. Leave null if + * not used mask. Default is null. + */ + keyMask: null, + + /** + * APIProperty: alwaysZoom * {Boolean} Always zoom in/out, when box drawed */ alwaysZoom: false,