Can you inspect the image and see if the url contains the forceLabels option? And make sure your SLD rule in GeoServer has a title, otherwise there won't be a label.
Andreas. On Fri, Feb 24, 2012 at 3:40 PM, Francesc Cañas <[email protected]> wrote: > Yes, is from GeoServer. I tried without Force_labels and it's the same > > 2012/2/24 Andreas Hocevar <[email protected]> >> >> Hi, >> >> is the layer that you want the legend with labels for a WMS layer from >> GeoServer? FORCE_LABELS is a vendor option specific to GeoServer. >> >> Andreas. >> >> 2012/2/24 Francesc Cañas <[email protected]>: >> > Hi, >> > >> > I've insert a legend in my map: >> > >> > var Llegenda = new GeoExt.LegendPanel({ >> > map: map, >> > title: 'Llegenda', >> > defaults: { >> > style: 'padding:5px', >> > baseParams: { >> > FORMAT: 'image/png', >> > LEGEND_OPTIONS: 'forceLabels:on' >> > } >> > } >> > }); >> > >> > And it shows the layers and the symbols of categories but doesn't label >> > them. What I have to do? >> > Thanks! >> > >> > >> > >> > -- >> > http://kikocanas.blogspot.com >> > >> > _______________________________________________ >> > Users mailing list >> > [email protected] >> > http://www.geoext.org/cgi-bin/mailman/listinfo/users >> > >> >> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. > > > > > -- > http://kikocanas.blogspot.com -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
