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 <[email protected]> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



-- 
Thanks & Regards
Smaran Harihar
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to