1
/* Copyright (c) 2006-2007 MetaCarta, Inc., published under a modified BSD license.
2
* See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
3
* for the full text of the license. */
6
* @requires OpenLayers/Control.js
10
* Class: OpenLayers.Control.Button
11
* A very simple button controlfor use with <OpenLayers.Control.Panel>.
12
* When clicked, the function trigger() is executed.
15
* - <OpenLayers.Control>
19
* var button = new OpenLayers.Control.Button({
20
* displayClass: "MyButton", trigger: myFunction
22
* panel.addControls([button]);
25
* Will create a button with CSS class MyButtonItemInactive, that
26
* will call the function MyFunction() when clicked.
28
OpenLayers.Control.Button = OpenLayers.Class(OpenLayers.Control, {
31
* {Integer} OpenLayers.Control.TYPE_BUTTON.
33
type: OpenLayers.Control.TYPE_BUTTON,
37
* Called by a control panel when the button is clicked.
39
trigger: function() {},
41
CLASS_NAME: "OpenLayers.Control.Button"
b'\\ No newline at end of file'