1 /* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD
2 * license. See http://svn.openlayers.org/trunk/openlayers/license.txt for the
3 * full text of the license. */
6 * @requires OpenLayers/Control.js
10 * Class: OpenLayers.Control.ZoomToMaxExtent
11 * The ZoomToMaxExtent control is a button that zooms out to the maximum
12 * extent of the map. It is designed to be used with a
13 * <OpenLayers.Control.Panel>.
16 * - <OpenLayers.Control>
18 OpenLayers.Control.ZoomToMaxExtent = OpenLayers.Class(OpenLayers.Control, {
22 * {String} The type of <OpenLayers.Control> -- When added to a
23 * <Control.Panel>, 'type' is used by the panel to determine how to
26 type: OpenLayers.Control.TYPE_BUTTON,
34 this.map.zoomToMaxExtent();
38 CLASS_NAME: "OpenLayers.Control.ZoomToMaxExtent"