[OpenLayers-Users] Highlight features in WMS Layer

Smaran Harihar smaran.harihar at gmail.com
Tue Oct 9 09:22:59 PDT 2012


Thanks for the reply Andreas and Phil.

Actually that is where I am confused. I am already using
the OpenLayers.Handler.Polygon for the draw feature and I am not sure how
or where to include the OpenLayers.Control.SLDSelect as it also needs
the OpenLayers.Handler.Polygon,
according to the example.

new OpenLayers.Control.DrawFeature(
                    features, OpenLayers.Handler.Polygon, {
                        eventListeners: { // code to fetch the data being
intersected by the user defined polygon }
                    }

Could you guide me as to how I should add the  OpenLayers.Control.SLDSelect
using the same OpenLayers.Handler.Polygon function or do I need to define
it all over again?

Thanks,
Smaran

On Mon, Oct 8, 2012 at 3:01 PM, Phil Scadden <p.scadden at gns.cri.nz> wrote:

> You can also look at using both wfsProtocol AND SLDSelect together. Let
> SLDSelect draw the selected features (especially good if the features
> are lines or polygon with very large no. of vertices) while you use
> wfsProtocol to fetch the attribute data only (ie use propertyNames to
> fetch back only the desired properties and especially dont specify Shape).
>
> If you only wfsProtocol, then you need a drawing layer on your map. You
> clear the layer at the start of the response function, then layer.add
> the features from the wfs response.
>
>
> Notice: This email and any attachments are confidential. If received in
> error please destroy and immediately notify us. Do not copy or disclose the
> contents.
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



-- 
Thanks & Regards
Smaran Harihar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121009/81497383/attachment-0001.html>


More information about the Users mailing list