source:
trunk/workshop-routing-foss4g/web/OpenLayers/lib/OpenLayers/Control/ZoomOut.js
@
76
Revision 76, 939 bytes checked in by djay, 12 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[76] | 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.ZoomOut | |
12 | * The ZoomOut control is a button to decrease the zoom level of a map. | |
13 | * | |
14 | * Inherits from: | |
15 | * - <OpenLayers.Control> | |
16 | */ | |
17 | OpenLayers.Control.ZoomOut = 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.zoomOut(); | |
32 | }, | |
33 | ||
34 | CLASS_NAME: "OpenLayers.Control.ZoomOut" | |
35 | }); |
Note: See TracBrowser
for help on using the repository browser.