OpenLayers.Element

Summary
OpenLayers.Element
Functions
visible
toggleToggle the visibility of element(s) passed in
hideHide element(s) passed in
showShow element(s) passed in
removeRemove the specified element from the DOM.
getHeight
getDimensions
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()

Hide element(s) passed in

Parameters

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

show

show: function()

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)

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()
Hide element(s) passed in
show: function()
Show element(s) passed in
remove: function(element)
Remove the specified element from the DOM.
getHeight: function(element)
getDimensions: function(element)
getStyle: function(element,
style)
Close