I'm using Geoserver 2.6.2.
I need to display land parcels and their references (a number). I have specified a maxscaledenominator
for the features (polygons) but I don't want references to appear at such a scale for it will be a nonsense (parcels appear very small and dense so that no additional information is needing on the map). Is it possible to specify a maxscaledenominator
for labels as well?
Here is an extract of my code:
<UserStyle>
<FeatureTypeStyle>
<Rule>
<MaxScaleDenominator>20000</MaxScaleDenominator>
<PolygonSymbolizer>
<Stroke>
<CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</Stroke>
</PolygonSymbolizer>
<TextSymbolizer>
<Geometry>
<ogc:Function name="centroid">
<ogc:PropertyName>the_geom</ogc:PropertyName>
</ogc:Function>
</Geometry>
<Label>
<ogc:PropertyName>reference</ogc:PropertyName>
</Label>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>