oscar. | |
Properties | |
activeColor | {String} |
themeStates | {Array(Object)} Contains a theme name and a pointer to the themes label in the theme switcher |
dataLbl | {DOMElement} |
dataLayersDiv | {DOMElement} |
dataLayers | {Array(<OpenLayers.Layer>)} |
minimizeDiv | {DOMElement} |
maximizeDiv | {DOMElement} |
Functions | |
OpenLayers. | |
draw | {DOMElement} A reference to the DIV DOMElement containing the switcher tabs. |
loadContents | Set up the labels and divs for the control |
checkRedraw | Checks if the layer state has changed since the last redraw() call. |
redraw | Goes through and takes the current state of the Map and rebuilds the control to display that state. |
ignoreEvent | |
mouseDown | Register a local ‘mouseDown’ flag so that we’ll know whether or not to ignore a mouseUp event |
mouseUp | If the ‘isMouseDown’ flag has been set, that means that the drag was started from within the LayerSwitcher control, and thus we can ignore the mouseup. |
{DOMElement} A reference to the DIV DOMElement containing the switcher tabs.
draw: function()
Set up the labels and divs for the control
loadContents: function()
Checks if the layer state has changed since the last redraw() call.
checkRedraw: function()
Goes through and takes the current state of the Map and rebuilds the control to display that state.
redraw: function()
ignoreEvent: function( evt )
Register a local ‘mouseDown’ flag so that we’ll know whether or not to ignore a mouseUp event
mouseDown: function( evt )
If the ‘isMouseDown’ flag has been set, that means that the drag was started from within the LayerSwitcher control, and thus we can ignore the mouseup.
mouseUp: function( evt )