OpenLayers.Element

Summary
OpenLayers.Element
Functions
hideDeprecated.
showDeprecated.
getDimensionsDeprecated.
String.startsWithDeprecated.
String.containsDeprecated.
Function.bindDeprecated.
Function.bindAsEventListenerDeprecated.

Functions

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

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.

String.startsWith

Deprecated.  Whether or not a string starts with another string.

Parameters

sStart{String} The string we’re testing for.

Returns

{Boolean} Whether or not this string starts with the string passed in.

String.contains

Deprecated.  Whether or not a string contains another string.

Parameters

str{String} The string that we’re testing for.

Returns

{Boolean} Whether or not this string contains with the string passed in.

Function.bind

Deprecated.  Bind a function to an object.  Method to easily create closures with ‘this’ altered.

Parameters

object{Object} the this parameter

Returns

{Function} A closure with ‘this’ altered to the first argument.

Function.bindAsEventListener

Deprecated.  Bind a function to an object, and configure it to receive the event object as first parameter when called.

Parameters

object{Object} A reference to this.

Returns

{Function}

hide: function()
Deprecated.
show: function()
Deprecated.
getDimensions: function(element)
Deprecated.
Close