[Mapbender-users] Unintentional display of the word "title" in legend

Tilo Wütherich tilo.wuetherich at la-bw.de
Tue Sep 11 04:22:08 EDT 2007


Hi All,

I have some trouble with my legend. For every item there are two lines, the
first with the appropriate name of the item, the second with the word
"title". It looks like

[] Gemeinden
   title

I can't get rid of the word title, I think it's related to my styles. I'm
using geoserver and you may have a look at a style below. Does anybody know
some help?

Regards, Tilo


###

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
    xsi:schemaLocation="http://www.opengis.net/sld
StyledLayerDescriptor.xsd"
    xmlns="http://www.opengis.net/sld"
    xmlns:ogc="http://www.opengis.net/ogc"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <!-- a named layer is the basic building block of an sld document -->

  <NamedLayer>
    <Name>Gemeinde</Name>
    <UserStyle>
        <!-- they have names, titles and abstracts -->

      <Title>Gemeinde</Title>
      <Abstract>A style that prints out a circle</Abstract>
      <!-- FeatureTypeStyles describe how to render different features -->
      <!-- a feature type for points -->

      <FeatureTypeStyle>
        <!--FeatureTypeName>Feature</FeatureTypeName-->
        <Rule>
          <Name>Rule 1</Name>
          <Title>Gemeinde</Title>
          <MaxScaleDenominator>3000000</MaxScaleDenominator>
          <MinScaleDenominator>100</MinScaleDenominator>
          <Abstract>A point with a 4 pixel size</Abstract>

          <!-- like a linesymbolizer but with a fill too -->
          <PointSymbolizer>
            <Graphic>
              <Mark>
                <WellKnownName>circle</WellKnownName>
                <Fill>
                  <CssParameter name="fill">#4B4E82</CssParameter>
                  <CssParameter name="fill-opacity">1.0</CssParameter>
                </Fill>
              </Mark>
              <Size>4</Size>
            </Graphic>
          </PointSymbolizer>
        </Rule>

           <!-- label -->
            <Rule>
            <MaxScaleDenominator>1500000</MaxScaleDenominator>
            <MinScaleDenominator>1000</MinScaleDenominator>
                <TextSymbolizer>
                    <Label>
                        <ogc:PropertyName>name</ogc:PropertyName>
                    </Label>
                    <Font>
                        <CssParameter
name="font-family">Arial</CssParameter>
                        <CssParameter
name="font-style">Normal</CssParameter>
                        <CssParameter name="font-size">12</CssParameter>
                        <CssParameter name="font-weight">bold</CssParameter>
                    </Font>

                   <LabelPlacement>
                     <PointPlacement>
                      <Displacement>
                        <DisplacementX>
                         3
                        </DisplacementX>
                       <DisplacementY>
                         5
                       </DisplacementY>
                      </Displacement>
                     </PointPlacement>
                   </LabelPlacement>

                    <Fill>
                        <CssParameter name="fill">#4B4E82</CssParameter>
                    </Fill>
                </TextSymbolizer>
            </Rule>
        </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>



More information about the Mapbender_users mailing list