Util

Summary
Copy all properties of a source object to a destination object.
{Object} Constant inches per unit -- borrowed from MapServer mapscale.c
{Integer} 72 (A sensible default)

Functions

extend

OpenLayers.Util.extend = function(destination,
source)

Copy all properties of a source object to a destination object.  Modifies the passed in destination object.

Parameters

destination{Object} The object that will be modified
source{Object} The object with properties to be set on the destination

Returns

{Object} The destination object.

zIndex is NOT set

Parameters

id{String} An identifier for this element.  If no id is passed an identifier will be created automatically.
px{OpenLayers.Pixel} The element left and top position.
sz{OpenLayers.Size} The element width and height.
imgURL{String} A url pointing to an image to use as a background image.
position{String} The style.position value. eg: absolute, relative etc.
border{String} The the style.border value. eg: 2px solid black
overflow{String} The style.overflow value.  Eg. hidden
opacity{Float} Fractional value (0.0 - 1.0)

Returns

{DOMElement} A DOM Div created with the specified attributes.

Constants

INCHES_PER_UNIT

{Object} Constant inches per unit -- borrowed from MapServer mapscale.c

DOTS_PER_INCH

{Integer} 72 (A sensible default)

OpenLayers.Util.extend = function(destination,
source)
Copy all properties of a source object to a destination object.
This class represents a screen coordinate, in x and y coordinates
Instances of this class represent a width/height pair