Thanks for the reply Andreas and Phil.<div><br></div><div>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 <span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">OpenLayers.Control.SLDSelect as it also needs the </span><font color="#222222" face="arial, sans-serif">OpenLayers.Handler.Polygon, according to the example.</font></div>
<div><br></div><div><div>new OpenLayers.Control.DrawFeature(</div><div> features, OpenLayers.Handler.Polygon, {</div><div> eventListeners: { // code to fetch the data being intersected by the user defined polygon }</div>
<div> }</div><div><br></div><div>Could you guide me as to how I should add the <span style="font-size:13px;background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif">OpenLayers.Control.SLDSelect using the same </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif">OpenLayers.Handler.Polygon function or do I need to define it all over again?</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif">Thanks,</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif">Smaran</span></div>
<br><div class="gmail_quote">On Mon, Oct 8, 2012 at 3:01 PM, Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz" target="_blank">p.scadden@gns.cri.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can also look at using both wfsProtocol AND SLDSelect together. Let<br>
SLDSelect draw the selected features (especially good if the features<br>
are lines or polygon with very large no. of vertices) while you use<br>
wfsProtocol to fetch the attribute data only (ie use propertyNames to<br>
fetch back only the desired properties and especially dont specify Shape).<br>
<br>
If you only wfsProtocol, then you need a drawing layer on your map. You<br>
clear the layer at the start of the response function, then layer.add<br>
the features from the wfs response.<br>
<div class="im HOEnZb"><br>
<br>
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.<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>
</div>