Skip to content

Commit d096a2a

Browse files
committed
Merge pull request openlayers#58 from jorix/3580-Docs_ZoomBox
ZoomBox: missing API documentation. p=jorix, r=fredj (closes #3580)
2 parents 0d820bf + d89819c commit d096a2a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

lib/OpenLayers/Control/Navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ OpenLayers.Control.Navigation = OpenLayers.Class(OpenLayers.Control, {
9494
* You should probably set handleRightClicks to true if you use this
9595
* with MOD_CTRL, to disable the context menu for machines which use
9696
* CTRL-Click as a right click.
97-
* Default: <OpenLayers.Handler.MOD_SHIFT
97+
* Default: <OpenLayers.Handler.MOD_SHIFT>
9898
*/
9999
zoomBoxKeyMask: OpenLayers.Handler.MOD_SHIFT,
100100

lib/OpenLayers/Control/ZoomBox.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,16 @@ OpenLayers.Control.ZoomBox = OpenLayers.Class(OpenLayers.Control, {
3131
out: false,
3232

3333
/**
34-
* Property: alwaysZoom
34+
* APIProperty: keyMask
35+
* {Integer} Zoom only occurs if the keyMask matches the combination of
36+
* keys down. Use bitwise operators and one or more of the
37+
* <OpenLayers.Handler> constants to construct a keyMask. Leave null if
38+
* not used mask. Default is null.
39+
*/
40+
keyMask: null,
41+
42+
/**
43+
* APIProperty: alwaysZoom
3544
* {Boolean} Always zoom in/out, when box drawed
3645
*/
3746
alwaysZoom: false,

0 commit comments

Comments
 (0)