source:
trunk/workshop-routing-foss4g/web/OpenLayers/lib/OpenLayers/Control/ZoomIn.js
@
81
Revision 76, 934 bytes checked in by djay, 12 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | /* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for |
2 | * full list of contributors). Published under the Clear BSD license. |
3 | * See http://svn.openlayers.org/trunk/openlayers/license.txt for the |
4 | * full text of the license. */ |
5 | |
6 | /** |
7 | * @requires OpenLayers/Control.js |
8 | */ |
9 | |
10 | /** |
11 | * Class: OpenLayers.Control.ZoomIn |
12 | * The ZoomIn control is a button to increase the zoom level of a map. |
13 | * |
14 | * Inherits from: |
15 | * - <OpenLayers.Control> |
16 | */ |
17 | OpenLayers.Control.ZoomIn = OpenLayers.Class(OpenLayers.Control, { |
18 | |
19 | /** |
20 | * Property: type |
21 | * {String} The type of <OpenLayers.Control> -- When added to a |
22 | * <Control.Panel>, 'type' is used by the panel to determine how to |
23 | * handle our events. |
24 | */ |
25 | type: OpenLayers.Control.TYPE_BUTTON, |
26 | |
27 | /** |
28 | * Method: trigger |
29 | */ |
30 | trigger: function(){ |
31 | this.map.zoomIn(); |
32 | }, |
33 | |
34 | CLASS_NAME: "OpenLayers.Control.ZoomIn" |
35 | }); |
Note: See TracBrowser
for help on using the repository browser.