Hi, check the SelectFeature Control [1] for an example on how to use the Box Handler.
Basically you create the handler with a callback function (done), the callback function will get the bounds of the box drawn. Best regards, Bart [1] http://dev.openlayers.org/releases/OpenLayers-2.8/lib/OpenLayers/Control/SelectFeature.js 莹莹 李 wrote: > hi!list > i want to draw a box and get coordinates of the box's four > points.i know i can draw box with OpenLayers.Handler.Box,but i don't > know how to get coordinates.please help me! give me a exmple about > this! thank you! > > > Ying Lee > > > ------------------------------------------------------------------------ > 好玩贺卡等你发,邮箱贺卡全新上线! > <http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/> > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > -- Bart van den Eijnden OSGIS, Open Source GIS [email protected] http://www.osgis.nl _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
