Hi,

 

I'm running into a problem I cannot solve. I want to display labels of
my features (polygons, lines and points) when zoomed in. In the
documentation I see that normally every feature will be labeled once.
But when I zoom in, most of my polygons and lines display the label more
than once. The further I zoom in, the more labels it displays (of the
same polygon or line).

The preview of geoserver is doing it correctly, but when I load my
features on my site it goes wrong.

What am I doing wrong? 

 

Here's my SLD code of the label, maybe there's something in there

 

    <FeatureTypeStyle>
    <Rule>
      <Name>Label</Name>
      <MaxScaleDenominator>10000</MaxScaleDenominator> 
        <TextSymbolizer>
          <Label>
          <PropertyName
xmlns="http://www.opengis.net/ogc";>code</PropertyName>
          </Label>
          <LabelPlacement>
          <PointPlacement>
            <AnchorPoint>
            <AnchorPointX>0</AnchorPointX>
            <AnchorPointY>0</AnchorPointY>
            </AnchorPoint>
          </PointPlacement>
          </LabelPlacement>
          <VendorOption name="group">yes</VendorOption>
        </TextSymbolizer>
    </Rule>
    </FeatureTypeStyle>

 

 

Thanks! 

Bram

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to