[Users] legend labels not displayed
Andreas Hocevar
ahocevar at opengeo.org
Fri Feb 24 16:26:06 CET 2012
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 <kikocanas at gmail.com> wrote:
> Yes, is from GeoServer. I tried without Force_labels and it's the same
>
> 2012/2/24 Andreas Hocevar <ahocevar at opengeo.org>
>>
>> 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 <kikocanas at gmail.com>:
>> > 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
>> > Users at geoext.org
>> > 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.
More information about the Users
mailing list