<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">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:<br>
</div>
<blockquote cite="mid:011d01cd7a18$84e004d0$8ea00e70$@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<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;}
/* 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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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]-->
<div class="WordSection1">
<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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">My LegendPanel
is inside an Ext.Window. My code is:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
aligned: top,</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
x: 350,</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
y: 150,</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
},</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
defaults: {</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
legendTitle: <u>activeLayerNode</u>,</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
baseParams: {</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
}</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
}</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
})</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
]</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas"> }),</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas">
legend.show();</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas"> }</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas"> });</span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas"> </span><span
style="font-size:10.0pt;font-family:Consolas;color:windowtext"><o:p></o:p></span></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><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">
<a class="moz-txt-link-abbreviated" href="mailto:users-bounces@geoext.org">users-bounces@geoext.org</a>
[<a class="moz-txt-link-freetext" 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 class="moz-txt-link-abbreviated" href="mailto:users@geoext.org">users@geoext.org</a><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,<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 moz-do-not-send="true"
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 class="moz-txt-link-rfc2396E" 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""><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:Users@geoext.org">Users@geoext.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" 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""><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 moz-do-not-send="true" href="http://www.mapgears.com">www.mapgears.com</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>