Merge all changes from the naturaldocs sandbox. This brings all the work that
has been done in the NaturalDocs branch back to trunk. Thanks to everyone who helped out in making this happen. (I could list people, but the list would be long, and I'm already mentally on vacation.) git-svn-id: http://svn.openlayers.org/trunk/openlayers@3545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -3,25 +3,37 @@
|
||||
* for the full text of the license. */
|
||||
|
||||
/**
|
||||
* @class
|
||||
*
|
||||
* @requires OpenLayers/Control.js
|
||||
* @requires OpenLayers/Handler/Box.js
|
||||
*
|
||||
* Class: OpenLayers.Control.ZoomBox
|
||||
*
|
||||
* Inherits from:
|
||||
* - <OpenLayers.Control>
|
||||
*/
|
||||
OpenLayers.Control.ZoomBox = OpenLayers.Class.create();
|
||||
OpenLayers.Control.ZoomBox.prototype =
|
||||
OpenLayers.Class.inherit( OpenLayers.Control, {
|
||||
/** @type OpenLayers.Control.TYPE_* */
|
||||
/**
|
||||
* Property: type
|
||||
* {OpenLayers.Control.TYPE}
|
||||
*/
|
||||
type: OpenLayers.Control.TYPE_TOOL,
|
||||
|
||||
/**
|
||||
*
|
||||
* Method: draw
|
||||
*/
|
||||
draw: function() {
|
||||
this.handler = new OpenLayers.Handler.Box( this,
|
||||
{done: this.zoomBox}, {keyMask: this.keyMask} );
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: zoomBox
|
||||
*
|
||||
* Parameters:
|
||||
* position - {<OpenLayers.Bounds>} or {<OpenLayers.Pixel>}
|
||||
*/
|
||||
zoomBox: function (position) {
|
||||
if (position instanceof OpenLayers.Bounds) {
|
||||
var minXY = this.map.getLonLatFromPixel(
|
||||
|
||||
Reference in New Issue
Block a user