RE: [Geoserver-users] making a property visible

You control the scale at which things are displayed using Rules with
MinScaleDenominator and MaxScaleDenominator:

<StyledLayerDescriptor version="1.0.0"
xmlns="http://www.opengis.net/sld&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/sld
StyledLayerDescriptor.xsd">
  <NamedLayer>
    <Name>YOUR_LAYER_NAME</Name>
    <UserStyle>
      <FeatureTypeStyle>
        <Rule>
  
<MinScaleDenominator>25000</MinScaleDenominator>
  
<MaxScaleDenominator>1000000</MaxScaleDenominator>
          <TextSymbolizer>
            <Geometry>
  
<ogc:PropertyName>YOUR_GEOMETRY_NAME</ogc:PropertyName>
            </Geometry>
            <Label>
  
<ogc:PropertyName>city_name</ogc:PropertyName>
            </Label>
            <Font>
              <CssParameter
name="font-family">Arial</CssParameter>
              <CssParameter
name="font-style">Normal</CssParameter>
              <CssParameter
name="font-weight">Normal</CssParameter>
              <CssParameter
name="font-size">12</CssParameter>
            </Font>
            <Halo>
  
<Radius>1</Radius>
              <Fill>
  
<CssParameter name="fill">#00FF00</CssParameter>
  
<CssParameter name="fill-opacity">0.3</CssParameter>
              </Fill>
            </Halo>
            <Fill>
              <CssParameter
name="fill">#FF0000</CssParameter>
              <CssParameter
name="fill-opacity">1.0</CssParameter>
            </Fill>
          </TextSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

The SLD Spec has it all: http://www.opengeospatial.org/docs/02-070.pdf

Miles

Miles Jordan
Applications Developer
The Australian Antarctic Data Centre
-----Original Message-----
From: geoserver-users-admin@lists.sourceforge.net
[mailto:geoserver-users-admin@lists.sourceforge.net] On Behalf Of
Akkineni Vijay
Sent: Wednesday, 22 February 2006 5:00 PM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] making a property visible

Hi Guys,

                  I have a scenario in my project , when i make the
propert city_name print on the map . the map gets too crowded . so i
want to make the city_name visible only after zooming to certain
extent . how can we do this . do i have to make some changes in the SLD

Regards,
Vijay Akkineni.
___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________