<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt"> Hi,<br><br>I have layers in a mapPanel which can be queried without problem.<br><br>I also have a getcapabilities window which loads layers into the map. But these layers do not get a response from the getFeatureInfo method.<br><br><br>Could anyone offer any suggestion as to why this doesn´t happen?<br><br>yours,<br><br>Robert<br><div><br><span style="color: rgb(192, 0, 0);">CODE FOR THE POPUPS</span><br><br>// create the popup<br>var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({<br> queryVisible: true,<br> highlightOnly: false,<br> maxFeatures: 2,<br><br>});<br><br><br>featureInfo.events.on({<br> getfeatureinfo: function(e) {<br> new
GeoExt.Popup({<br> title: "INFO",<br> width: 300,<br> height : 200,<br> autoHeight: true,<br> layout: 'fit',<br> bodyStyle: 'background-color:#FFF;,font-size:14px;',<br> autoScroll: true,<br> maximizable: true,<br> map: mapPanel.map,<br> lonlat:
mapPanel.map.getLonLatFromPixel(e.xy),<br> html: e.text,<br> unpinnable:true,<br> anchored: true,<br> shadow: true,<br> listeners: {<br> close: function() {<br> // closing a popup destroys it, but our reference is truthy<br> popup =
null;<br> }<br> }<br><br> }).show();<br> }<br>});<br><br>map.addControl(featureInfo);<br>featureInfo.activate();<br><br><br><br></div>
</div><br></body></html>