<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt;color:#000000;"><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Hi,</div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; ">I would like to do the following and after several hours of trying and googling will have to admit that I havenīt got far.</div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; ">I want to ...</div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family:
arial, helvetica, sans-serif; font-size: 10pt; ">1. Restrict the fields displayed in my popup window so that I can control which fields are displayed. I donīt want to show fid, objectid etc</div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; ">2. Ideally I would like to use the accordion layout for when there is more than one queryable layer, but I canīt find any code to implement this. I have seen it on Bryan Mcbrides explorer, but apart from that canīt find any documentation. </div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; ">currently I have a popup designed like this...</div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica,
sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">// create the popup</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">        </span>queryVisible: true,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">        </span>highlightOnly: true,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">        </span>maxFeatures: 5,</font></div><div><font
class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">        </span>layers: [layer_wea_wms,EnMap_SG_WEA_f]</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">});</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">featureInfo.events.on({</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> getfeatureinfo: function(e) {</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> new GeoExt.Popup({</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> title: "Position:
"+mappanel.map.getLonLatFromPixel(e.xy).transform(epsg900913, epsg4326),<span class="Apple-tab-span" style="white-space:pre">                        </span></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> width: 400,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>autoHeight: true,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>layout: 'accordion',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>bodyStyle: 'background-color:#FFF;,font-size:14px;',</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">
autoScroll: true,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> maximizable: true,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> map: mappanel.map,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> lonlat: mappanel.map.getLonLatFromPixel(e.xy),</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> html:'<p style="font-size:10px;">Attributen</p><br>'+e.text,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>unpinnable:true,</font></div><div><font class="Apple-style-span"
face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>anchored: true,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>shadow: true,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                        </span>listeners: {</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> close: function() {</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> // closing a popup destroys it, but our reference is truthy</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"
size="2"> popup = null;</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> }</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">                                </span>}</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> }).show();</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> }</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">});</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span
class="Apple-tab-span" style="white-space:pre">        </span>map.addControl(featureInfo);</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">        </span>featureInfo.activate();</font></div></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; ">thanks for any help</div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt; position: fixed; "></div>
</div></body></html>