Fix OpenLayers.Icon apidoc
'size' can be either an OpenLayers.Size or a simple javascript object, 'offset' can be either an OpenLayers.Pixel or a simple javascript object.
This commit is contained in:
+11
-4
@@ -29,13 +29,16 @@ OpenLayers.Icon = OpenLayers.Class({
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: size
|
* Property: size
|
||||||
* {<OpenLayers.Size>}
|
* {<OpenLayers.Size>|Object} An OpenLayers.Size or
|
||||||
|
* an object with a 'w' and 'h' properties.
|
||||||
*/
|
*/
|
||||||
size: null,
|
size: null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: offset
|
* Property: offset
|
||||||
* {<OpenLayers.Pixel>} distance in pixels to offset the image when being rendered
|
* {<OpenLayers.Pixel>|Object} distance in pixels to offset the
|
||||||
|
* image when being rendered. An OpenLayers.Pixel or an object
|
||||||
|
* with a 'x' and 'y' properties.
|
||||||
*/
|
*/
|
||||||
offset: null,
|
offset: null,
|
||||||
|
|
||||||
@@ -62,8 +65,12 @@ OpenLayers.Icon = OpenLayers.Class({
|
|||||||
* Creates an icon, which is an image tag in a div.
|
* Creates an icon, which is an image tag in a div.
|
||||||
*
|
*
|
||||||
* url - {String}
|
* url - {String}
|
||||||
* size - {<OpenLayers.Size>}
|
* size - {<OpenLayers.Size>|Object} An OpenLayers.Size or an
|
||||||
* offset - {<OpenLayers.Pixel>}
|
* object with a 'w' and 'h'
|
||||||
|
* properties.
|
||||||
|
* offset - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or an
|
||||||
|
* object with a 'x' and 'y'
|
||||||
|
* properties.
|
||||||
* calculateOffset - {Function}
|
* calculateOffset - {Function}
|
||||||
*/
|
*/
|
||||||
initialize: function(url, size, offset, calculateOffset) {
|
initialize: function(url, size, offset, calculateOffset) {
|
||||||
|
|||||||
Reference in New Issue
Block a user