OpenLayers OpenLayers

Changeset 2039

Show
Ignore:
Timestamp:
12/13/06 07:15:29 (2 years ago)
Author:
euzuro
Message:

updating jsdoc comments for accuracy

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Marker/Box.js

    r1721 r2039  
    1111OpenLayers.Marker.Box = OpenLayers.Class.create(); 
    1212OpenLayers.Marker.Box.prototype = OpenLayers.Class.inherit( OpenLayers.Marker, { 
    13     /** @type OpenLayers.LonLat */ 
     13 
     14    /** @type OpenLayers.Bounds */ 
    1415    bounds: null, 
    1516 
     17    /** @type DOMElement */ 
    1618    div: null, 
    1719     
    1820    /**  
    19     * @constructor 
    20     * 
    21     * @param {OpenLayers.Icon} icon 
    22     * @param {OpenLayers.LonLat lonlat 
    23     */ 
     21     * @constructor 
     22     * 
     23     * @param {OpenLayers.Bounds} bounds 
     24     * @param {String} borderColor 
     25     * @param {int} borderWidth 
     26     */ 
    2427    initialize: function(bounds, borderColor, borderWidth) { 
    2528        this.bounds = bounds; 
     
    3033    }, 
    3134 
     35    /** Allow the user to change the box's color and border width 
     36     *  
     37     * @param {String} color Default is "red" 
     38     * @param {int} width Default is 2 
     39     */ 
    3240    setBorder: function (color, width) { 
    33         if (!color) color = "red"; 
    34         if (!width) width = 2; 
     41        color = color || "red"; 
     42        width = width || 2; 
    3543        this.div.style.border = width + "px solid " + color; 
    3644    }, 
     
    3846    /**  
    3947    * @param {OpenLayers.Pixel} px 
     48    * @param {OpenLayers.Size} sz 
    4049    *  
    4150    * @return A new DOM Image with this markerŽs icon set at the