OpenLayers Nightly Build Revision 10086<br>GeoServer 2.0.1<br><br>I'm attempting to label a vector layer using a Style Layer Descriptor (see below) which works fine in GeoServer but the labels do not display in OpenLayers. I can do the same thing using the OpenLayers.Style object but I'd really like use the same SLD as used by GeoServer.<br>
<br>I've found a discussion thread from 2008 which says that the SLD TextSymbolizer is only supported for reading / writing but can't be used for display purposes. As such can anybody advise if the SLD TextSymbolizer can be used for displaying labels with the current trunk; if it will be included in 2.9; or if it supported is there an error in my SLD?<br>
<br>Many thanks in advance<br><br>Andrew<br><br><br>--- Start SLD (xml ns tags removed) ---<br><sld:StyledLayerDescriptor version="1.0.0"><br> <sld:NamedLayer><br> <sld:Name>ParcelView</sld:Name><br>
<sld:UserStyle><br> <sld:IsDefault>1</sld:IsDefault><br> <sld:FeatureTypeStyle><br> <sld:Rule><br> <sld:MaxScaleDenominator>300000</sld:MaxScaleDenominator><br>
<sld:PolygonSymbolizer><br> <!-- the fill displays correctly --><br> <sld:Fill><br> <sld:CssParameter name="fill"><br> <ogc:Literal>#FFFAE6</ogc:Literal><br>
</sld:CssParameter><br> <sld:CssParameter name="fill-opacity"><br> <ogc:Literal>0.75</ogc:Literal><br> </sld:CssParameter><br>
</sld:Fill><br> <!-- the label does not show --><br> <sld:Stroke><br> <sld:CssParameter name="stroke"><br> <ogc:Literal>#B2B2B2</ogc:Literal><br>
</sld:CssParameter><br> <sld:CssParameter name="stroke-width"><br> <ogc:Literal>0.4</ogc:Literal><br> </sld:CssParameter><br>
</sld:Stroke><br> </sld:PolygonSymbolizer><br> <sld:TextSymbolizer><br> <sld:Label><br> <ogc:PropertyName>FULL_PARCEL_ID</ogc:PropertyName><br>
</sld:Label><br> <sld:Font><br> <sld:CssParameter name="font-family"><br> <ogc:Literal>Times New Roman</ogc:Literal><br> </sld:CssParameter><br>
</sld:Font><br> <sld:Fill><br> <sld:CssParameter name="fill"><br> <ogc:Literal>#000000</ogc:Literal><br> </sld:CssParameter><br>
</sld:Fill><br> </sld:TextSymbolizer><br> </sld:Rule><br> </sld:FeatureTypeStyle><br> </sld:UserStyle><br> </sld:NamedLayer><br></sld:StyledLayerDescriptor><br>
--- End SLD ---<br>