~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to gis/dhis-gis-geostat/mfbase/openlayers/lib/OpenLayers/Control/ZoomPanel.js

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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. */
 
4
 
 
5
/**
 
6
 * @requires OpenLayers/Control/Panel.js
 
7
 * @requires OpenLayers/Control/ZoomIn.js
 
8
 * @requires OpenLayers/Control/ZoomOut.js
 
9
 * @requires OpenLayers/Control/ZoomToMaxExtent.js
 
10
 */
 
11
 
 
12
/**
 
13
 * Class: OpenLayers.Control.ZoomPanel
 
14
 * 
 
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:
 
18
 * 
 
19
 * <!--[if lte IE 6]>
 
20
 *   <link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />
 
21
 * <![endif]-->
 
22
 * 
 
23
 * Inherits from:
 
24
 *  - <OpenLayers.Control.Panel>
 
25
 */
 
26
OpenLayers.Control.ZoomPanel = OpenLayers.Class(OpenLayers.Control.Panel, {
 
27
 
 
28
    /**
 
29
     * Constructor: OpenLayers.Control.ZoomPanel 
 
30
     * Add the three zooming controls.
 
31
     *
 
32
     * Parameters:
 
33
     * options - {Object} An optional object whose properties will be used
 
34
     *     to extend the control.
 
35
     */
 
36
    initialize: function(options) {
 
37
        OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);
 
38
        this.addControls([
 
39
            new OpenLayers.Control.ZoomIn(),
 
40
            new OpenLayers.Control.ZoomToMaxExtent(),
 
41
            new OpenLayers.Control.ZoomOut()
 
42
        ]);
 
43
    },
 
44
 
 
45
    CLASS_NAME: "OpenLayers.Control.ZoomPanel"
 
46
});