Community Map Builder 27 Apr 2008

Reset.js

Summary

No overview generated for 'Reset.js'


Class Summary
Reset  

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

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

/**
 * Reset button - resets the map to full extent.
 * @constructor
 * @base ButtonBase
 * @author Andreas Hocevar andreas.hocevarATgmail.com
 * @param widgetNode The widget node from the Config XML file.
 * @param model The model for this widget
 */
function Reset(widgetNode, model) {

  this.createControl = function() {
  	return OpenLayers.Control.ZoomToMaxExtent;
  }
  
  // Extend ButtonBase
  ButtonBase.apply(this, new Array(widgetNode, model));
}


Community Map Builder 27 Apr 2008

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