[OpenLayers-Users] get feature info select box

Christopher Schmidt crschmidt at metacarta.com
Mon Dec 10 18:08:53 EST 2007


On Tue, Dec 11, 2007 at 09:50:07AM +1100, bradleyspencer wrote:
> List,
> 
> Has anyone got an example of how to use the mouse to drag a rectangle/square
> over the map area which then can be used to intersect with map objects such
> as server-side polygons?
> 
> I really just want a client tool to generate the drag box and expose the
> BBox in real map coords. I can then stuff these into a filtered GetFeature
> request to snare all the objects I want.

Shift-drag on http://openlayers.org/dev/examples/custom-control.html
does what you want, I think.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list