OpenLayers OpenLayers

Changeset 6446

Show
Ignore:
Timestamp:
03/06/08 10:02:30 (10 months ago)
Author:
crschmidt
Message:

Add more docs to rectangle

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Geometry/Rectangle.js

    r5614 r6446  
    99/** 
    1010 * Class: OpenLayers.Geometry.Rectangle 
    11  * A Rectangle is a simple geometry. It is specified by a point (x and y)  
    12  *     and dimensions (width and height), all of which are directly accessible  
    13  *     as properties. 
     11 * This class is *not supported*, and probably isn't what you're looking for. 
     12 *     Instead, most users probably want something like: 
     13 *     (code) 
     14 *     var poly = new OpenLayers.Bounds(0,0,10,10).toGeometry(); 
     15 *     (end) 
     16 *     This will create a rectangular Polygon geometry.  
    1417 *  
    1518 * Inherits: