I am trying to change the MIME type in a WMSLegend object from GIF to PNG using the following code:<br><br>xtype: 'gx_legendpanel',<br>id: 'LegendPanel',<br>autoScroll: true,<br>height: 350,<br>title: 'Legend',<br>
collapsible: true,<br>region: 'south',<br>split: true,<br>defaults: {<br> baseParams: {<br> FORMAT: 'image/png'<br> },<br>useScaleParameter: false<br>}<br><br>However, when I run my app, it is appending an extra FORMAT attribute after the default one:<br>
<br><a href="http://geoserver:8080/geoserver/ows?SERVICE=WMS&FORMATS=image%2Fpng&TRANSPARENT=TRUE&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=mylayer&FORMAT=image/gif&FORMAT=image%2Fpng">http://geoserver:8080/geoserver/ows?SERVICE=WMS&FORMATS=image%2Fpng&TRANSPARENT=TRUE&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=mylayer&FORMAT=image/gif&FORMAT=image%2Fpng</a><br>
<br>My application is reading the first FORMAT attribute and rendering the legend as a GIF instead of a PNG.<br><br>Is there any way to suppress the first attribute, or is this a bug in GeoExt?<br><br>The same thing appears to happen with the SCALE parameter as well<br>
<br><br>Thanks,<br><br>Andrew<br><br>