/* Copyright (c) 2006 MetaCarta, Inc., published under a modified BSD license. * See http://svn.openlayers.org/trunk/openlayers/repository-license.txt * for the full text of the license. */ /** * @requires OpenLayers/Control.js * * Class: OpenLayers.Control.ZoomToMaxExtent * Imlements a very simple button control. Designed to be used with a * . * * Inherits from: * - */ OpenLayers.Control.ZoomToMaxExtent = OpenLayers.Class(OpenLayers.Control, { /** * Property: type * TYPE_BUTTON. */ type: OpenLayers.Control.TYPE_BUTTON, /* * Method: trigger * Do the zoom. */ trigger: function() { if (this.map) { this.map.zoomToMaxExtent(); } }, /** @final @type String */ CLASS_NAME: "OpenLayers.Control.ZoomToMaxExtent" });