[OpenLayers-Users] Draw a RegularPolygon automatically by
defining the coordinates
Ivan Grcic
igrcic at gmail.com
Tue Dec 15 03:44:48 EST 2009
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 <martijnsendenspam at gmail.com> 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
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Ivan Grcic
More information about the Users
mailing list