<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Have you tried it without the html property<br>
Matt Priour<br>
<br>
On 3/5/2012 1:19 PM, Robert Buckley wrote:
<blockquote
cite="mid:1330975153.97771.YahooMailNeo@web24105.mail.ird.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:arial,
helvetica, sans-serif;font-size:10pt">
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; ">Hi,</div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; "><br>
</div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; ">I want to create a more user friendly info
window for my getFeatureInfo tool</div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; "><br>
</div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; ">I have seen example apps where the
getfeature info is outputted to an accordion window....for
some reason I can´t get this to work. Is anyone able to show
me some code in able to modify my present ext.popup shown
below...I have tried to create the accordion window, but it
doesn´t work...it is shows an ext.window!?! even though I have<span
style="font-size: 13px; "> defined </span><span
style="font-size: 13px; ">layout: "accordion",!!!</span></div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; "><br>
</div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; ">thanks.</div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; "><br>
</div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; ">RB</div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; "><br>
</div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; ">// GetFeatureInfo tool ouputs all features
into one window :-(</div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 10pt; "><br>
</div>
<div>
<div><font size="2" face="arial, helvetica, sans-serif">var
featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({</font></div>
<div><font size="2" face="arial, helvetica, sans-serif"><span
class="Apple-tab-span" style="white-space:pre"> </span>
layers:
[layer_rrop_15,layer_rrop_14,layer_rrop_13,layer_rrop_13_l,layer_rrop_13_p,layer_rrop_hws,layer_rrop_11_22,layer_rrop_11,layer_rrop_10,layer_rrop_09,layer_rrop_08,layer_rrop_05,layer_rrop_04,layer_rrop_03_l,layer_rrop_03,layer_rrop_02_l,layer_rrop_02,layer_rrop_01], </font></div>
<div><font size="2" face="arial, helvetica, sans-serif"><span
class="Apple-tab-span" style="white-space:pre"> </span>
// infoFormat: "application/vnd.ogc.gml", </font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
queryVisible: true,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
highlightOnly: false,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
maxFeatures: 20,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif"><span
class="Apple-tab-span" style="white-space:pre"> </span>eventListeners:
{</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
"getfeatureinfo": function(e) {
</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
var items = [];</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
Ext.each(e.features, function(feature) {</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
items.push({</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
xtype: "propertygrid",</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
title: feature.fid,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
source: feature.attributes</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
});</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
});</font></div>
<div><font size="2" face="arial, helvetica, sans-serif"><span
class="Apple-tab-span" style="white-space:pre"> </span>new
GeoExt.Popup({</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
url: "/geoserver/ows",</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
title: "Info",</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
width: 200,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
autoheight: true,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
layout: "accordion",</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
bodyStyle:
'background-color:#FFF;,font-size:14px;',</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
autoScroll: true,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
maximizable: true,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
map: mapPanel.map,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
lonlat: mapPanel.map.getLonLatFromPixel(e.xy),</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
html: e.text,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
maximizable: true,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
collapsible: true,</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
items: items </font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
}).show(); </font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
}</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
}</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
});</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
map.addControl(featureInfo);</font></div>
<div><font size="2" face="arial, helvetica, sans-serif">
featureInfo.activate();</font></div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<p class="" avgcert""="" color="#000000" align="left">No virus
found in this message.<br>
Checked by AVG - <a moz-do-not-send="true"
href="http://www.avg.com">www.avg.com</a><br>
Version: 2012.0.1913 / Virus Database: 2114/4852 - Release Date:
03/05/12</p>
</blockquote>
</body>
</html>