[OpenLayers-Users] DrawFeature: box supported?

Christopher Schmidt crschmidt at metacarta.com
Mon Oct 15 08:47:10 EDT 2007


On Mon, Oct 15, 2007 at 02:28:49PM +0200, Bart van den Eijnden (OSGIS) wrote:
> Hi list,
> 
> can DrawFeature be used to draw a box / rectangular geometry?
> 
> I tried adding a button to the EditingToolbar/Control:
> 
> new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Box,
> {'displayClass': 'olControlDrawFeatureBox'})

The box handler is not a vector feature handler. Point, Path, Poly,
RegularPoly are the only vector feature handlers. 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list