Project

General

Profile

1
/*
2
License: LGPL as per: http://www.gnu.org/copyleft/lesser.html
3
$Id: ZoomIn.js 2956 2007-07-09 12:17:52Z steven $
4
*/
5

    
6
// Ensure this object's dependancies are loaded.
7
mapbuilder.loadScript(baseDir+"/widget/ButtonBase.js");
8
mapbuilder.loadScript(baseDir+"/util/openlayers/OpenLayers.js");
9

    
10
/**
11
 * ZoomIn button - zooms in on click or box drag in the map.
12
 * @constructor
13
 * @base ButtonBase
14
 * @author Andreas HOcevar andreas.hocevarATgmail.com
15
 * @param widgetNode The widget node from the Config XML file.
16
 * @param model The model for this widget
17
 */
18
function ZoomIn(widgetNode, model) {
19
  // Extend ButtonBase
20
  ButtonBase.apply(this, new Array(widgetNode, model));
21

    
22
  this.cursor = 'crosshair';
23

    
24
  this.createControl = function() {
25
    return OpenLayers.Control.ZoomBox;
26
  }
27
}
28

    
(143-143/145)