OpenLayers. Handler

Base class to construct a higher-level handler for event sequences.  Handlers are created by controls, which ultimately have the responsibility of making changes to the map.

Summary
Base class to construct a higher-level handler for event sequences.
Private.
Private.
Private.
{Number}
Private.
Construct a handler.
Turn on the handler.
Turn off the handler.
trigger the control’s named callback with the given arguments
register an event on the map
unregister an event from the map

Properties

id

Private.  {String}

control

Private.  {OpenLayers.Control}.  The control that initialized this handler.

map

Private.  {OpenLayers.Map}

keyMask

{Number}

active

Private.  {Boolean}

Functions

OpenLayers. Handler

Construct a handler.

Parameters

control{OpenLayers.Control}
callbacks{Object} A hash of callback functions
options{Object}

setMap

setMap: function (map)

checkModifiers

checkModifiers: function (evt)

activate

activate: function()

Turn on the handler.  Returns false if the handler was already active.

Return

{Boolean}

deactivate

deactivate: function()

Turn off the handler.  Returns false if the handler was already inactive.

Return: {Boolean}

callback

callback: function (name,
args)

trigger the control’s named callback with the given arguments

register

register: function (name,
method)

register an event on the map

unregister

unregister: function (name,
method)

unregister an event from the map

destroy

destroy: function ()
setMap: function (map)
checkModifiers: function (evt)
activate: function()
Turn on the handler.
deactivate: function()
Turn off the handler.
callback: function (name,
args)
trigger the control’s named callback with the given arguments
register: function (name,
method)
register an event on the map
unregister: function (name,
method)
unregister an event from the map
destroy: function ()
Controls affect the display or behavior of the map.
Instances of OpenLayers.Map are interactive maps embedded in a web page.