[OpenLayers-Users] Problem with TextSymbolizer

Andreas Hocevar ahocevar at opengeo.org
Fri Feb 15 08:50:10 PST 2013


Hey,

make sure that you don't use PNG8 or GIF output formats. PNG should work best.

Andreas.

On Fri, Feb 15, 2013 at 2:44 PM, gabriel <gpetricek at gmail.com> wrote:
> Hi guys,
>
> i have many layers with parameter transparent set to true. Im changing their
> sld styles via sld_body. The problem is , when i change  or set
> TextSymbolizer and its parameters to text layers , which are published from
> Geoserver (they have geometry),text is displayed but it is not so good
> visible. I think , the problem is with transparent parameter, but i need it
> , to see layers. If i set transparent to false, i cant see layers below
> current layer.
>
> There is an example of SLD , it is send thru the mergeParams function:
> <StyledLayerDescriptor
> version="1.0.0"><UserLayer><Name>layer</Name><UserStyle><FeatureTypeStyle><Rule><TextSymbolizer><Label><PropertyName>name</PropertyName></Label><Fill><CssParameter
> name='fill'>#54FFD7</CssParameter></Fill><CssParameter
> name='font-size'>20</CssParameter><CssParameter
> name='font-weight'>bold</CssParameter></TextSymbolizer></Rule></FeatureTypeStyle></UserStyle></UserLayer></StyledLayerDescriptor>
>
> Im setting bold, italic , size values for WMStext layers.
>
> Is there other way to fix this problem or where am i doing mistake ?
>
> Best regards.
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-TextSymbolizer-tp5034546.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list