[OpenLayers-Users] Highlight features in WMS Layer

Andreas Hocevar ahocevar at opengeo.org
Tue Oct 9 01:30:21 PDT 2012


The SLDSelect control comes with its own handlers for drawing
selection geometries on the map. It is a replacement for the
SelectFeature control. SLDSelect only creates a filter, and features
are dealt with on the server. SelectFeature deals with features on the
client.

Andreas.

On Mon, Oct 8, 2012 at 8:47 PM, Smaran Harihar <smaran.harihar at gmail.com> wrote:
>
> Thanks for the reply Andreas, I am trying to only highlight the features
> that have been selected by the user defined polygon. So I have the features
> and I need to apply, only to those select features, the SLD highlight.
>
> Is it possible to use OpenLayers.Control.SLDSelect and pass the select
> features or it is necessary to use,
>
> OpenLayers.Control.SLDSelect(
> OpenLayers.Handler.RegularPolygon, {
>     //code
>     }
> })
>
> ??
>
> Thanks,
> Smaran
>
> On Sun, Oct 7, 2012 at 8:10 AM, Andreas Hocevar <ahocevar at opengeo.org>
> wrote:
>>
>> For highlihting features in the WMS layer directly, you may want to have a
>> look at OpenLayers.Control.SLDSelect.
>>
>> Andreas.
>>
>> On Oct 5, 2012 9:13 PM, "Smaran Harihar" <smaran.harihar at gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I have written a code that obtains the details of the features that are
>>> intersected by the user defined polygon. I did that by using the
>>> WFSprotocol,
>>>
>>> wfsProtocol = new OpenLayers.Protocol.WFS.fromWMSLayer(layer);
>>>
>>> Now I am working on how I can highlight the selected features. Is it
>>> possible to highlight the features in the WMS layer directly? I guess not,
>>> so how can I create WFS features of only the selected features?
>>>
>>> How should I proceed?
>>>
>>> --
>>> Thanks & Regards
>>> Smaran Harihar
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>>
>
>
>
> --
> Thanks & Regards
> Smaran Harihar
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list