I've got some code lying around to do circle selection with the GetFeature
control. If anybody is interested I can open up a ticket with a patch.

Some handlers have a persist option which indicate whether or not the
drawn geometry should persist (not be cleared after drawing), however the
box Handler (used by the GetFeature Control in box mode) does not have it
currently.

Circle uses the RegularPolygon handler, and that one can persist if you want.

Best regards,
Bart

> Hi,
>
> I think you cannot use a circle instead of a box. But you can change your
> code to do a GeFeature-request with a filter, so you can request your
> features around a circle area.
> To question 1: I had same occurrence with the fast disappearing box- but I
> think that has to do with event and style for wfs layer (see my other
> post).
>
> Hope that helped a little bit.
>
> best regards
> Sarah
>
>
>
>
> ________________________________
> Von: sunny74 <[email protected]>
> An: [email protected]
> Gesendet: Dienstag, den 27. April 2010, 8:09:09 Uhr
> Betreff: Re: [OpenLayers-Users] control.SelectFeature
>
>
> Hi Sarah,
>
> Thanks for your reply.
> I tried using
> http://dev.openlayers.org/releases/OpenLayers-2.9/examples/getfeature-wfs.html
> http://dev.openlayers.org/releases/OpenLayers-2.9/examples/getfeature-wfs.html
>
> but it doesn't work.
>
> How ever when I create a WFS atop a WMS and then do getfeature on the WFS
> layer I get the information about the features.
> My problems are:
>
> 1) When I drag a mouse a box is created but it goes off as soon as I leave
> it.I want a permanent layer over the position of selection.
>
> 2) I want to have a circle instead of a box for selection.
>
> You can look at my code in my post,
>
> http://osgeo-org.1803224.n2.nabble.com/WFS-GEtFeature-layer-not-showing-on-map-td4921150.html#a4921150
> http://osgeo-org.1803224.n2.nabble.com/WFS-GEtFeature-layer-not-showing-on-map-td4921150.html#a4921150
>
> Thanks again.
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/control-SelectFeature-tp4930933p4966806.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>


_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to