[OpenLayers-Users] Rectangle (box-like) drawing tool?

Frédéric Junod frederic.junod at camptocamp.com
Thu Apr 5 01:41:20 EDT 2007


This is my vector version.

The patch is working with the last svn version.

Hope that's help,
Regards,

fredj

Le Wed, 4 Apr 2007 12:46:36 -0700 (PDT),
Mike Quentel <mikequentel at yahoo.com> a écrit :

> Has anyone implemented a rectangle drawing tool?  As in something
> that draws polygons like the sandbox examples, but restricts mouse
> movements so that only rectangles are drawn?  I see there is an
> OpenLayers.Handler.Box class and an OpenLayers.Handler.Polygon
> class.  I want to have a rectangle drawing tool, so I'm thinking I'd
> want to inherit from Polygon and/or Box.  Has anyone already
> implemented such a class?  Would be nice to not "re-invent the
> wheel".  I searched the API and the Nabble archives (thank you so
> much for this very useful resource).  Any advice on how to make a
> rectangle drawing tool appreciated.  Thank you.
> 
> Mike Quentel
>
-- 
Frédéric Junod
Camptocamp SA
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Rectangle.patch.txt
Url: http://openlayers.org/pipermail/users/attachments/20070405/0cf991d5/attachment.txt 


More information about the Users mailing list