OpenLayers.Element

Summary
OpenLayers.Element
Functions
visible
toggleToggle the visibility of element(s) passed in
hideDeprecated.
showDeprecated.
removeRemove the specified element from the DOM.
getHeight
getDimensionsDeprecated.
getStyle

Functions

visible

visible: function(element)

Parameters

element{DOMElement}

Returns

{Boolean} Is the element visible?

toggle

toggle: function()

Toggle the visibility of element(s) passed in

Parameters

element{DOMElement} Actually user can pass any number of elements

hide

hide: function()

Deprecated.  Hide element(s) passed in

Parameters

element{DOMElement} Actually user can pass any number of elements

show

show: function()

Deprecated.  Show element(s) passed in

Parameters

element{DOMElement} Actually user can pass any number of elements

remove

remove: function(element)

Remove the specified element from the DOM.

Parameters

element{DOMElement}

getHeight

getHeight: function(element)

Parameters

element{DOMElement}

Returns

{Integer} The offset height of the element passed in

getDimensions

getDimensions: function(element)

Deprecated.  Returns dimensions of the element passed in.

Parameters

element{DOMElement}

Returns

{Object} Object with ‘width’ and ‘height’ properties which are the dimensions of the element passed in.

getStyle

getStyle: function(element,
style)

Parameters

element{DOMElement}
style{?}

Returns

{?}

visible: function(element)
toggle: function()
Toggle the visibility of element(s) passed in
hide: function()
Deprecated.
show: function()
Deprecated.
remove: function(element)
Remove the specified element from the DOM.
getHeight: function(element)
getDimensions: function(element)
Deprecated.
getStyle: function(element,
style)
Close