]> dev.renevier.net Git - syp.git/blob - openlayers/lib/OpenLayers/Control/ZoomIn.js
initial commit
[syp.git] / openlayers / lib / OpenLayers / Control / ZoomIn.js
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.js
7  */
8
9 /**
10  * Class: OpenLayers.Control.ZoomIn
11  * The ZoomIn control is a button to increase the zoom level of a map.
12  *
13  * Inherits from:
14  *  - <OpenLayers.Control>
15  */
16 OpenLayers.Control.ZoomIn = OpenLayers.Class(OpenLayers.Control, {
17
18     /**
19      * Property: type
20      * {String} The type of <OpenLayers.Control> -- When added to a 
21      *     <Control.Panel>, 'type' is used by the panel to determine how to 
22      *     handle our events.
23      */
24     type: OpenLayers.Control.TYPE_BUTTON,
25     
26     /**
27      * Method: trigger
28      */
29     trigger: function(){
30         this.map.zoomIn();
31     },
32
33     CLASS_NAME: "OpenLayers.Control.ZoomIn"
34 });