[Users] WMS legend quality

Jacinto Estima jacinto.estima at gmail.com
Tue Aug 14 14:37:29 CEST 2012


Sorry. I forgot to do that. I just hit reply instead of replay all.

 

 

From: Alexandre Dubé [mailto:adube at mapgears.com] 
Sent: Tuesday, August 14, 2012 4:35 PM
To: Jacinto Estima
Cc: GeoEXT Users
Subject: Re: [Users] WMS legend quality

 

Hi Jacinto,

  Don't forget to include the list in your reply.

Alexandre


On 12-08-14 08:29 AM, Jacinto Estima wrote:

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.

My LegendPanel is inside an Ext.Window. My code is:

 

var open_legend = new Ext.Button({

        text: 'Legend',

        icon: "images/legend.png",

        tooltip: "Show the legend of the active layer",

        handler: function(record){

              legend = new Ext.Window({

              title: "Layer legend",

              aligned: top,

              autoWidth: true,

              autoHeight: true,

              x: 350,

              y: 150,

              items: [new GeoExt.LegendPanel({

                     dynamic: false,

                     filter: function(record) {

                           SelectedLayer =
record.get("layer").name.indexOf(activeLayerNode) !== -1;

                           return SelectedLayer;

                     },

                     defaults: {

                            legendTitle: activeLayerNode,

                                  style: 'padding:5px',

                                  baseParams: {

                                                FORMAT: 'image/png',

                                                }

                                  }

                     })

                     ]

       }),

              legend.show();

        }

    });

    

       var left_toolbar = new Ext.Toolbar([open_legend]);

 

From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On Behalf
Of Alexandre Dubé
Sent: Tuesday, August 14, 2012 4:13 PM
To: users at geoext.org
Subject: Re: [Users] WMS legend quality

 

Hi,

  Yes, there is.  The default MIME type is image/gif.  You can change it
using the baseParams config of your LegendPanel object.  See :
 
https://github.com/geoext/geoext/blob/master/lib/GeoExt/widgets/WMSLegend.js
#L54

HTH,

Alexandre

Jacinto Estima  <mailto:jacinto.estima at gmail.com> <jacinto.estima at gmail.com>
On 12-08-14 06:37 AM, Jacinto Estima wrote:

Hi,

 

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.

 

Regards,

Jacinto







_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users







-- 
Alexandre Dubé
Mapgears
www.mapgears.com






-- 
Alexandre Dubé
Mapgears
www.mapgears.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120814/1125636b/attachment.htm 


More information about the Users mailing list