<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \, serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Sorry. I forgot to do that. I just hit reply instead of replay all.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Alexandre Dubé [mailto:adube@mapgears.com] <br><b>Sent:</b> Tuesday, August 14, 2012 4:35 PM<br><b>To:</b> Jacinto Estima<br><b>Cc:</b> GeoEXT Users<br><b>Subject:</b> Re: [Users] WMS legend quality<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Jacinto,<br><br> Don't forget to include the list in your reply.<br><br>Alexandre<br><br><br>On 12-08-14 08:29 AM, Jacinto Estima wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span style='color:#1F497D'>Thanks Alexandre. I already have this configuration for png format, but I still get the labels in the legend with very bad quality. I don’t know if I am doing something wrong.</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>My LegendPanel is inside an Ext.Window. My code is:</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>var</span></b><span style='font-size:10.0pt;font-family:Consolas'> open_legend = </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>new</span></b><span style='font-size:10.0pt;font-family:Consolas'> Ext.Button({</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> text: </span><span style='font-size:10.0pt;font-family:Consolas;color:#2A00FF'>'Legend'</span><span style='font-size:10.0pt;font-family:Consolas'>,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> icon: </span><span style='font-size:10.0pt;font-family:Consolas;color:#2A00FF'>"images/legend.png"</span><span style='font-size:10.0pt;font-family:Consolas'>,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> tooltip: </span><span style='font-size:10.0pt;font-family:Consolas;color:#2A00FF'>"Show the legend of the active layer"</span><span style='font-size:10.0pt;font-family:Consolas'>,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> handler: </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>function</span></b><span style='font-size:10.0pt;font-family:Consolas'>(record){</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> legend = </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>new</span></b><span style='font-size:10.0pt;font-family:Consolas'> Ext.Window({</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> title: </span><span style='font-size:10.0pt;font-family:Consolas;color:#2A00FF'>"Layer legend"</span><span style='font-size:10.0pt;font-family:Consolas'>,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> aligned: top,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> autoWidth: </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>true</span></b><span style='font-size:10.0pt;font-family:Consolas'>,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> autoHeight: </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>true</span></b><span style='font-size:10.0pt;font-family:Consolas'>,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> x: 350,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> y: 150,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> items: [</span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>new</span></b><span style='font-size:10.0pt;font-family:Consolas'> GeoExt.LegendPanel({</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> dynamic: </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>false</span></b><span style='font-size:10.0pt;font-family:Consolas'>,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> filter: </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>function</span></b><span style='font-size:10.0pt;font-family:Consolas'>(record) {</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> SelectedLayer = record.get(</span><span style='font-size:10.0pt;font-family:Consolas;color:#2A00FF'>"layer"</span><span style='font-size:10.0pt;font-family:Consolas'>).name.indexOf(<u>activeLayerNode</u>) !== -1;</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>return</span></b><span style='font-size:10.0pt;font-family:Consolas'> SelectedLayer;</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> },</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> defaults: {</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> legendTitle: <u>activeLayerNode</u>,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> style: </span><span style='font-size:10.0pt;font-family:Consolas;color:#2A00FF'>'padding:5px'</span><span style='font-size:10.0pt;font-family:Consolas'>,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> baseParams: {</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> FORMAT: </span><span style='font-size:10.0pt;font-family:Consolas;color:#2A00FF'>'image/png'</span><span style='font-size:10.0pt;font-family:Consolas'>,</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> }</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> }</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> })</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> ]</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> }),</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> legend.show();</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> }</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> });</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:Consolas'> </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>var</span></b><span style='font-size:10.0pt;font-family:Consolas'> left_toolbar = </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>new</span></b><span style='font-size:10.0pt;font-family:Consolas'> Ext.Toolbar([open_legend]);</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> <a href="mailto:users-bounces@geoext.org">users-bounces@geoext.org</a> [<a href="mailto:users-bounces@geoext.org">mailto:users-bounces@geoext.org</a>] <b>On Behalf Of </b>Alexandre Dubé<br><b>Sent:</b> Tuesday, August 14, 2012 4:13 PM<br><b>To:</b> <a href="mailto:users@geoext.org">users@geoext.org</a><br><b>Subject:</b> Re: [Users] WMS legend quality</span><o:p></o:p></p></div></div><p class=MsoNormal> <o:p></o:p></p><div><p class=MsoNormal>Hi,<br><br> Yes, there is. The default MIME type is image/gif. You can change it using the baseParams config of your LegendPanel object. See :<br> <a href="https://github.com/geoext/geoext/blob/master/lib/GeoExt/widgets/WMSLegend.js#L54">https://github.com/geoext/geoext/blob/master/lib/GeoExt/widgets/WMSLegend.js#L54</a><br><br>HTH,<br><br>Alexandre<br><br>Jacinto Estima <a href="mailto:jacinto.estima@gmail.com"><jacinto.estima@gmail.com></a><br>On 12-08-14 06:37 AM, Jacinto Estima wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Is there a way to improve the quality of the legend that comes with the GeoExt.LegendPanel request? I am receiving it but the quality is not very nice.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal>Jacinto<o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman , serif","serif"'><br><br><br><br></span><o:p></o:p></p><pre>_______________________________________________<o:p></o:p></pre><pre>Users mailing list<o:p></o:p></pre><pre><a href="mailto:Users@geoext.org">Users@geoext.org</a><o:p></o:p></pre><pre><a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman , serif","serif"'><br><br><br><br></span><o:p></o:p></p><pre>-- <o:p></o:p></pre><pre>Alexandre Dubé<o:p></o:p></pre><pre>Mapgears<o:p></o:p></pre><pre><a href="http://www.mapgears.com">www.mapgears.com</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>Alexandre Dubé<o:p></o:p></pre><pre>Mapgears<o:p></o:p></pre><pre><a href="http://www.mapgears.com">www.mapgears.com</a><o:p></o:p></pre></div></body></html>