Hi,<div><br></div><div>I was finally able to get the proxy.cgi and the server configs right and now I am able to display the WFS, but now I am not able to create the PopUp.</div><div><br></div><div>This is my code and not sure where I am going wrong.</div>
<div><br></div><div><div> info = new OpenLayers.Control.WMSGetFeatureInfo({</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>url : '<a href="http://niles.iplantcollaborative.org:8080/geoserver/iPlant/wms">http://niles.iplantcollaborative.org:8080/geoserver/iPlant/wms</a>',</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>title : 'Identify features by clicking',</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>queryVisible : true,</div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span>eventListeners : {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>getfeatureinfo : function(event) {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>map.addPopup(new OpenLayers.Popup.FramedCloud("chicken", map.getLonLatFromPixel(event.xy), null, event.text, null, true));</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>map.addControl(info);</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>info.activate();</div><div><br></div><div>Also, this popup will give me info for all the layers. I wish to have info of selected layers. How can I do that?</div>
<div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>
</div>