|
Community Map Builder 21 Aug 2007 | |||||||
PREV NEXT | FRAMES NO FRAMES |
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 21 Aug 2007 | |||||||
PREV NEXT | FRAMES NO FRAMES |