You should write your own control with a Box Handler, check the ZoomBox control for an example.
Bart > > Hi, > > My requirement: > > I want to draw a rectangle over the google map using openlayers. > > After the user draws the rectangle, I should able to get the top left > latitude and longitude & bottom right latitude and longitude to query the > database. > > Is that possible in openlayers? > > Thanks, > Iswaria > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/draw-rectangle-over-the-map-tp5220565p5220565.html > Sent from the OpenLayers Dev mailing list archive at Nabble.com. > _______________________________________________ > Dev mailing list > Dev@openlayers.org > http://openlayers.org/mailman/listinfo/dev > _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev