Project

General

Profile

1
/*
2
License: LGPL as per: http://www.gnu.org/copyleft/lesser.html
3
$Id: DragPan.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

    
9
/**
10
 * When this button is selected, dragging in the map moves the map extent.
11
 * @constructor
12
 * @base ButtonBase
13
 * @author Andreas HocevarATgmail.com
14
 * @param widgetNode The widget node from the Config XML file.
15
 * @param model The model for this widget
16
 */
17
function DragPan(widgetNode, model) {
18
  // Extend ButtonBase
19
  ButtonBase.apply(this, new Array(widgetNode, model));
20
  
21
  this.createControl = function(objRef) {
22
  	return OpenLayers.Control.DragPan;
23
  }
24
  
25
  this.cursor = 'move'; 
26
}
27

    
(23-23/145)