OpenLayers custom string, number and function functions are described here.
Test whether a string starts with another string.
{Boolean} The first string starts with the second.
Test whether a string contains another string.
{Boolean} The first string contains the second.
Removes leading and trailing whitespace characters from a string.
{String} A trimmed version of the string with all leading and trailing spaces removed.
Camel-case a hyphenated string. Ex. “chicken-head” becomes “chickenHead”, and “-chicken-head” becomes “ChickenHead”.
{String} The string, camelized
Deprecated. Whether or not a string starts with another string.
{Boolean} Whether or not this string starts with the string passed in.
Deprecated. Whether or not a string contains another string.
{Boolean} Whether or not this string contains with the string passed in.
Deprecated. Removes leading and trailing whitespace characters from a string.
Deprecated. Camel-case a hyphenated string. Ex. “chicken-head” becomes “chickenHead”, and “-chicken-head” becomes “ChickenHead”.
Limit the number of significant digits on an integer.
{Integer} The number, rounded to the specified number of significant digits.
Deprecated. Limit the number of significant digits on an integer. Does not work with floats!
{Integer} The number, rounded to the specified number of significant digits. If null, 0, or negative value passed in, returns 0
Bind a function to an object. Method to easily create closures with ‘this’ altered.
{Function} A closure with ‘this’ set to the passed in object.
Bind a function to an object, and configure it to receive the event object as first parameter when called.
{Function}
Deprecated. Bind a function to an object. Method to easily create closures with ‘this’ altered.
{Function} A closure with ‘this’ altered to the first argument.
Deprecated. Bind a function to an object, and configure it to receive the event object as first parameter when called.