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.
OpenLayers. | The 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. | Create a panel for holding text-based button controls |
Functions | |
draw | Overrides the draw method in OpenLayers.Control.Panel by applying up to two additional CSS classes Returns: {DOMElement} |
redraw | Overrides the redraw method in OpenLayers.Control.Panel by setting the orientation class. |
setOrientationClass | Adds the “vertical” class if this TextButtonPanel should have a vertical, rather than horizontal, layout. |
setAdditionalClass | Sets an additional CSS class for this TextButtonPanel (for example, to override the default placement). |
draw: function()
Overrides the draw method in OpenLayers.Control.Panel by applying up to two additional CSS classes Returns: {DOMElement}
redraw: function()
Overrides the redraw method in OpenLayers.Control.Panel by setting the orientation class.
Overrides the draw method in OpenLayers.Control.Panel by applying up to two additional CSS classes Returns: {DOMElement}
draw: function()
Overrides the redraw method in OpenLayers.Control.Panel by setting the orientation class.
redraw: function()
Adds the “vertical” class if this TextButtonPanel should have a vertical, rather than horizontal, layout.
setOrientationClass: function()
Sets an additional CSS class for this TextButtonPanel (for example, to override the default placement).
setAdditionalClass: function()