Hello GeoExt Users,<br><br>Sorry in advance if this is trivial. I am trying to limit the number of columns that appear in my feature info popup for my WMS layer. So far I have the all the columns of the feature info of my WMS layer popping up. I'd like to show maybe only 2 columns? This is what I got so far:<br>
<br>var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo();<br> featureInfo.events.on({<br> getfeatureinfo: function(e) {<br> new GeoExt.Popup({<br> title: "Feature Info",<br>
width: 900,<br> height: 250,<br> autoScroll: true,<br> maximizable: true,<br> map: mapPanel.map,<br>
lonlat: mapPanel.map.getLonLatFromPixel(e.xy),<br> html: e.text<br> //html: e.featureInfo.attributes.LAT //This didn't work, but is there a way to say which coulmns I want???<br>
}).show();<br> }<br> });<br> <br> mapPanel.map.addControl(featureInfo);<br> featureInfo.activate(); <br><br>My other issue is that I have multiple layers in my map. I would like it if only the feature info for the active layer of a point comes up, however right now I have feature info showing up for all the layers of that point. In other words if layer a is checked on, I only want the feature info of that point in layer a. Thanks for all your help :). I've been stuck on this for a while now and haven't made any progress pass this :-/<br>
<br>elshae<br>