Community Map Builder 27 Apr 2008

DragPan.js

Summary

No overview generated for 'DragPan.js'


Class Summary
DragPan  

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

// Ensure this object's dependancies are loaded.
mapbuilder.loadScript(baseDir+"/widget/ButtonBase.js");

/**
 * When this button is selected, dragging in the map moves the map extent.
 * @constructor
 * @base ButtonBase
 * @author Andreas HocevarATgmail.com
 * @param widgetNode The widget node from the Config XML file.
 * @param model The model for this widget
 */
function DragPan(widgetNode, model) {
  // Extend ButtonBase
  ButtonBase.apply(this, new Array(widgetNode, model));
  
  this.createControl = function(objRef) {
  	return OpenLayers.Control.DragPan;
  }
  
  this.cursor = 'move'; 
}


Community Map Builder 27 Apr 2008

Documentation generated by JSDoc on Sun Apr 27 20:30:54 2008