OpenLayers.Control.TextButtonPanel

The TextButtonPanel is a panel designed primarily to hold TextButton controls.  By default it has a displayClass of olControlTextButtonPanel, which hooks it to a set of text-appropriate styles in the default stylesheet.

Inherits from

Summary
OpenLayers.Control.TextButtonPanelThe TextButtonPanel is a panel designed primarily to hold TextButton controls.
Properties
vertical{Boolean} Whether the button strip should appear vertically on the map.
additionalClass{String} An additional class to be applied in addition to .olControlTextButtonPanel to allow for non-default positioning.
Constructor
OpenLayers.Control.TextButtonPanelCreate a panel for holding text-based button controls
Functions
drawOverrides the draw method in OpenLayers.Control.Panel by applying up to two additional CSS classes Returns: {DOMElement}
redrawOverrides the redraw method in OpenLayers.Control.Panel by setting the orientation class.
setOrientationClassAdds the “vertical” class if this TextButtonPanel should have a vertical, rather than horizontal, layout.
setAdditionalClassSets an additional CSS class for this TextButtonPanel (for example, to override the default placement).

Properties

vertical

{Boolean} Whether the button strip should appear vertically on the map.

additionalClass

{String} An additional class to be applied in addition to .olControlTextButtonPanel to allow for non-default positioning.

Constructor

OpenLayers.Control.TextButtonPanel

Create a panel for holding text-based button controls

Parameters

options{Object}

Functions

draw

draw: function()

Overrides the draw method in OpenLayers.Control.Panel by applying up to two additional CSS classes Returns: {DOMElement}

redraw

redraw: function()

Overrides the redraw method in OpenLayers.Control.Panel by setting the orientation class.

setOrientationClass

setOrientationClass: function()

Adds the “vertical” class if this TextButtonPanel should have a vertical, rather than horizontal, layout.

setAdditionalClass

setAdditionalClass: function()

Sets an additional CSS class for this TextButtonPanel (for example, to override the default placement).  This allows more than one TextButtonPanel to exist on the map at once.

draw: function()
Overrides the draw method in OpenLayers.Control.Panel by applying up to two additional CSS classes Returns: {DOMElement}
The Panel control is a container for other controls.
redraw: function()
Overrides the redraw method in OpenLayers.Control.Panel by setting the orientation class.
setOrientationClass: function()
Adds the “vertical” class if this TextButtonPanel should have a vertical, rather than horizontal, layout.
setAdditionalClass: function()
Sets an additional CSS class for this TextButtonPanel (for example, to override the default placement).
Close