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/Panel.js
7
* @requires OpenLayers/Control/ZoomIn.js
8
* @requires OpenLayers/Control/ZoomOut.js
9
* @requires OpenLayers/Control/ZoomToMaxExtent.js
13
* Class: OpenLayers.Control.ZoomPanel
15
* Note: If you wish to use this class with the default images and you want
16
* it to look nice in ie6, you should add the following, conditionally
17
* added css stylesheet to your HTML file:
20
* <link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />
24
* - <OpenLayers.Control.Panel>
26
OpenLayers.Control.ZoomPanel = OpenLayers.Class(OpenLayers.Control.Panel, {
29
* Constructor: OpenLayers.Control.ZoomPanel
30
* Add the three zooming controls.
33
* options - {Object} An optional object whose properties will be used
34
* to extend the control.
36
initialize: function(options) {
37
OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);
39
new OpenLayers.Control.ZoomIn(),
40
new OpenLayers.Control.ZoomToMaxExtent(),
41
new OpenLayers.Control.ZoomOut()
45
CLASS_NAME: "OpenLayers.Control.ZoomPanel"