http://dev.openlayers.org/docs/files/OpenLayers/Geometry/Rectangle-js.html
says:
This class is not supported, and probably isn’t what you’re looking
for. Instead, most users probably want something like:
var poly = new OpenLayers.Bounds(0,0,10,10).toGeometry();
This will create a rectangular Polygon geometry.
Use docs more often ;)
cheers
On Tue, Dec 15, 2009 at 9:37 AM, sendeman <[email protected]> wrote:
>
>
> stash wrote:
>>
>> Is it possible to draw a rectangle with createRegularPolygon?
>>
>
> I think not. A rectangle with irregular sides wouldn't be regular.
> createRegularePolygon can only create polygons with equal length sides.
>
> Regards, Martijn.
> --
> View this message in context:
> http://n2.nabble.com/Draw-a-RegularPolygon-automatically-by-defining-the-coordinates-tp4163028p4168838.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
--
Ivan Grcic
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users