Fix OpenLayers.Util apidoc
'px' and 'sz' parameters for modifyDOMElement, createDiv, createImage, createAlphaImageDiv and modifyAlphaImageDiv can be either a OpenLayers.Pixel/OpenLayers.Size or a simple javascript object.
This commit is contained in:
@@ -140,8 +140,12 @@ OpenLayers.Util.indexOf = function(array, obj) {
|
||||
* Parameters:
|
||||
* element - {DOMElement} DOM element to modify.
|
||||
* id - {String} The element id attribute to set.
|
||||
* px - {<OpenLayers.Pixel>} The left and top style position.
|
||||
* sz - {<OpenLayers.Size>} The width and height style attributes.
|
||||
* px - {<OpenLayers.Pixel>|Object} The element left and top position,
|
||||
* OpenLayers.Pixel or an object with
|
||||
* a 'x' and 'y' properties.
|
||||
* sz - {<OpenLayers.Size>|Object} The element width and height,
|
||||
* OpenLayers.Size or an object with a
|
||||
* 'w' and 'h' properties.
|
||||
* position - {String} The position attribute. eg: absolute,
|
||||
* relative, etc.
|
||||
* border - {String} The style.border attribute. eg:
|
||||
@@ -192,8 +196,12 @@ OpenLayers.Util.modifyDOMElement = function(element, id, px, sz, position,
|
||||
* 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.
|
||||
* px - {<OpenLayers.Pixel>|Object} The element left and top position,
|
||||
* OpenLayers.Pixel or an object with
|
||||
* a 'x' and 'y' properties.
|
||||
* sz - {<OpenLayers.Size>|Object} The element width and height,
|
||||
* OpenLayers.Size or an object with a
|
||||
* 'w' and 'h' properties.
|
||||
* imgURL - {String} A url pointing to an image to use as a
|
||||
* background image.
|
||||
* position - {String} The style.position value. eg: absolute,
|
||||
@@ -235,8 +243,12 @@ OpenLayers.Util.createDiv = function(id, px, sz, imgURL, position,
|
||||
* Parameters:
|
||||
* id - {String} The id field for the img. If none assigned one will be
|
||||
* automatically generated.
|
||||
* px - {<OpenLayers.Pixel>} The left and top positions.
|
||||
* sz - {<OpenLayers.Size>} The style.width and style.height values.
|
||||
* px - {<OpenLayers.Pixel>|Object} The element left and top position,
|
||||
* OpenLayers.Pixel or an object with
|
||||
* a 'x' and 'y' properties.
|
||||
* sz - {<OpenLayers.Size>|Object} The element width and height,
|
||||
* OpenLayers.Size or an object with a
|
||||
* 'w' and 'h' properties.
|
||||
* imgURL - {String} The url to use as the image source.
|
||||
* position - {String} The style.position value.
|
||||
* border - {String} The border to place around the image.
|
||||
@@ -331,8 +343,10 @@ OpenLayers.Util.alphaHack = function() {
|
||||
* Parameters:
|
||||
* div - {DOMElement} Div containing Alpha-adjusted Image
|
||||
* id - {String}
|
||||
* px - {<OpenLayers.Pixel>}
|
||||
* sz - {<OpenLayers.Size>}
|
||||
* px - {<OpenLayers.Pixel>|Object} OpenLayers.Pixel or an object with
|
||||
* a 'x' and 'y' properties.
|
||||
* sz - {<OpenLayers.Size>|Object} OpenLayers.Size or an object with
|
||||
* a 'w' and 'h' properties.
|
||||
* imgURL - {String}
|
||||
* position - {String}
|
||||
* border - {String}
|
||||
@@ -379,8 +393,10 @@ OpenLayers.Util.modifyAlphaImageDiv = function(div, id, px, sz, imgURL,
|
||||
*
|
||||
* Parameters:
|
||||
* id - {String}
|
||||
* px - {<OpenLayers.Pixel>}
|
||||
* sz - {<OpenLayers.Size>}
|
||||
* px - {<OpenLayers.Pixel>|Object} OpenLayers.Pixel or an object with
|
||||
* a 'x' and 'y' properties.
|
||||
* sz - {<OpenLayers.Size>|Object} OpenLayers.Size or an object with
|
||||
* a 'w' and 'h' properties.
|
||||
* imgURL - {String}
|
||||
* position - {String}
|
||||
* border - {String}
|
||||
|
||||
Reference in New Issue
Block a user