ALKMaps.Control.Button

The Button control is a very simple push-button, for use with ALKMaps.Control.Panel.  When clicked, the function trigger() is executed.

Inherits from

Use

var button = new ALKMaps.Control.Button({
    displayClass: "MyButton", trigger: myFunction
});
panel.addControls([button]);

Will create a button with CSS class MyButtonItemInactive, that will call the function MyFunction() when clicked.

Summary
ALKMaps.Control.ButtonThe Button control is a very simple push-button, for use with ALKMaps.Control.Panel.
Properties
type{Integer} ALKMaps.Control.TYPE_BUTTON.
Functions
triggerCalled by a control panel when the button is clicked.

Properties

type

{Integer} ALKMaps.Control.TYPE_BUTTON.

Functions

trigger

trigger: function()

Called by a control panel when the button is clicked.

The Panel control is a container for other controls.
trigger: function()
Called by a control panel when the button is clicked.
Controls affect the display or behavior of the map.
Close