From 21c097a29779854713465b2310ae4f6d4db891d8 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 6 Mar 2008 15:02:30 +0000 Subject: [PATCH] Add more docs to rectangle git-svn-id: http://svn.openlayers.org/trunk/openlayers@6446 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Geometry/Rectangle.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/OpenLayers/Geometry/Rectangle.js b/lib/OpenLayers/Geometry/Rectangle.js index 69a0047802..32972448cd 100644 --- a/lib/OpenLayers/Geometry/Rectangle.js +++ b/lib/OpenLayers/Geometry/Rectangle.js @@ -8,9 +8,12 @@ /** * Class: OpenLayers.Geometry.Rectangle - * A Rectangle is a simple geometry. It is specified by a point (x and y) - * and dimensions (width and height), all of which are directly accessible - * as properties. + * This class is *not supported*, and probably isn't what you're looking for. + * Instead, most users probably want something like: + * (code) + * var poly = new OpenLayers.Bounds(0,0,10,10).toGeometry(); + * (end) + * This will create a rectangular Polygon geometry. * * Inherits: * -