[OpenLayers-Users] control.SelectFeature
Bart van den Eijnden
bartvde at osgis.nl
Sun May 2 13:53:40 EDT 2010
Okay, the basic code for circle selection in the GetFeature control is here:
http://trac.openlayers.org/ticket/2609
Please give it a try.
Best regards,
Bart
On Apr 27, 2010, at 10:20 AM, bartvde at OSGIS.NL wrote:
> 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 <sb.ray at hotmail.com>
>> An: users at openlayers.org
>> 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
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list