SCALEDEPENDENTRENDERER

Used in

CONFIG  REQUEST  RESPONSE  

Servers

Image  Feature  

Parent elements

GROUPRENDERER  LAYER  LAYERDEF  LAYERINFO  SCALEDEPENDENTRENDERER 

Syntax

<SCALEDEPENDENTRENDERERAttribute Description Table
     lower="double or string"
     upper="double or string"
>

     (r)<GROUPRENDERER... /> [Or]
     (r)<SCALEDEPENDENTRENDERER... /> [Or]
     (r)<SIMPLELABELRENDERER... /> [Or]
     (r)<SIMPLERENDERER... /> [Or]
     (r)<VALUEMAPLABELRENDERER... /> [Or]
     (r)<VALUEMAPRENDERER... /> [Or]

</SCALEDEPENDENTRENDERER >
(r): Attribute or child element is required.

Description

Displays specified rendering information at certain scales. A layer can have different renderings depending on the current scale. For example, when zoomed out, you can draw a street layer one pixel in width. As you zoom farther in, you can draw the street layer eight pixels in width and in a different color.

Restrictions


Notes


Attribute Descriptions for SCALEDEPENDENTRENDERER

AttributeUsage
lowerMinimum scale to display renderer using a relative scale such as 1:24000. Scale can also be calculated as the number of map units per pixel.
upperMaximum scale to display renderer using a relative scale such as 1:24000. Scale can also be calculated as the number of map units per pixel.
Back to top 

Examples for SCALEDEPENDENTRENDERER

Example 1: Changing road symbology at a scale of 1:20000000.
<?xml version="1.0" encoding="UTF-8"?>
<ARCXML version="1.1">
  <CONFIG>
    <ENVIRONMENT>
      <LOCALE country="US" language="en" variant="" />
      <UIFONT color="0,0,0" name="Arial" size="12" style="regular" />
      <SCREEN dpi="96" />
    </ENVIRONMENT>
    <MAP>
      <PROPERTIES>
        <ENVELOPE minx="-158.204086" miny="19.067062" maxx="-67.097816" maxy="70.319496" name="Initial_Extent" />
        <MAPUNITS units="decimal_degrees" />
        <FILTERCOORDSYS id="4326" />
        <FEATURECOORDSYS id="4326"/>
      </PROPERTIES>
      <WORKSPACES>
        <SHAPEWORKSPACE name="shp_ws-2" directory="<path to USA ESRIDATA>" />
      </WORKSPACES>
      <LAYER type="featureclass" name="ROADS" visible="true" id="0">
        <DATASET name="ROADS" type="line" workspace="shp_ws-2" />
        <GROUPRENDERER>
          <SCALEDEPENDENTRENDERER upper="1:20000000">
            <GROUPRENDERER>
              <SIMPLERENDERER>
                <SIMPLELINESYMBOL type="solid" width="5" color="0,0,0" />
              </SIMPLERENDERER>
              <SIMPLERENDERER>
                <SIMPLELINESYMBOL type="solid" width="3" color="255,0,0" />
              </SIMPLERENDERER>
              <SIMPLERENDERER>
                <SIMPLELINESYMBOL type="solid" width="1" color="255,255,255" />
              </SIMPLERENDERER>
            </GROUPRENDERER>
          </SCALEDEPENDENTRENDERER>
          <SCALEDEPENDENTRENDERER lower="1:20000000">
            <SIMPLERENDERER>
              <SIMPLELINESYMBOL type="solid" width="1" color="255,0,0" />
            </SIMPLERENDERER>
          </SCALEDEPENDENTRENDERER>
        </GROUPRENDERER>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>

Example 2: Using VALUEMAPRENDERER and VALUEMAPLABELRENDERER inside a SCALEDEPENDENTRENDERER.
VALUEMAPLABELRENDERER lookupfield="TYPE" labelfield="NAME" <?xml version="1.0" encoding="UTF-8"?>
<ARCXML version="1.1">
  <CONFIG>
    <ENVIRONMENT>
      <LOCALE country="US" language="en" variant="" />
      <UIFONT color="0,0,0" name="Arial" size="12" style="regular" />
      <SCREEN dpi="96" />
    </ENVIRONMENT>
    <MAP>
      <PROPERTIES>
        <ENVELOPE minx="-74.066" miny="40.689" maxx="-73.823" maxy="40.883" name="Initial_Extent" />
        <MAPUNITS units="decimal_degrees" />
        <FILTERCOORDSYS id="4326" />
        <FEATURECOORDSYS id="4326"/>
      </PROPERTIES>
      <WORKSPACES>
        <SHAPEWORKSPACE name="shp_ws-0" directory="path to data" />
      </WORKSPACES>
      <LAYER type="featureclass" name="Roads" visible="true" id="4" maxscale="1:35000">
        <DATASET name="nyc_roads" type="line" workspace="shp_ws-0" />
        <GROUPRENDERER>
          <SCALEDEPENDENTRENDERER lower="1:21300" >
            <VALUEMAPRENDERER lookupfield="ROAD_TYPE">
              <EXACT value="Freeway">
                <SIMPLELINESYMBOL type="solid" width="3" color="255,0,0" />
              </EXACT>
              <EXACT value="Street">
                <SIMPLELINESYMBOL type="solid" width="1" color="0,0,255" />
              </EXACT>
              <OTHER>
                <SIMPLELINESYMBOL type="solid" width="1" color="0,255,0" />
              </OTHER>
            </VALUEMAPRENDERER>  
          </SCALEDEPENDENTRENDERER>
          <SCALEDEPENDENTRENDERER upper="1:21300">
            <GROUPRENDERER>
              <VALUEMAPRENDERER lookupfield="ROAD_TYPE">
                <EXACT value="Freeway">
                  <SIMPLELINESYMBOL type="solid" width="9" color="0,0,0" />
                </EXACT>
                <EXACT value="Street">
                  <SIMPLELINESYMBOL type="solid" width="8" color="255,255,255" />
                </EXACT>
                <OTHER>
                  <SIMPLELINESYMBOL type="solid" width="1" color="0,0,255" />
                </OTHER>
              </VALUEMAPRENDERER>
              <VALUEMAPRENDERER lookupfield="ROAD_TYPE">
                <EXACT value="Freeway">
                  <SIMPLELINESYMBOL type="solid" width="7" color="255,0,0" />
                </EXACT>
              </VALUEMAPRENDERER>
              <VALUEMAPRENDERER lookupfield="ROAD_TYPE">
                <EXACT value="Freeway">
                  <SIMPLELINESYMBOL type="solid" width="3" color="0,0,0" />
                </EXACT>
              </VALUEMAPRENDERER>
              <VALUEMAPRENDERER lookupfield="ROAD_TYPE">
                <EXACT value="Freeway">
                  <SIMPLELINESYMBOL type="solid" width="1" color="255,255,255" />
                </EXACT>
              </VALUEMAPRENDERER>
            </GROUPRENDERER>
          </SCALEDEPENDENTRENDERER>
          <SCALEDEPENDENTRENDERER upper="1:25000">
            <VALUEMAPLABELRENDERER lookupfield="ROAD_TYPE" labelfield="NAME" linelabelposition="placeontop" howmanylabels="One_label_per_name">
              <EXACT value="Freeway">
                <TEXTSYMBOL font="Arial" fontsize="14" fontstyle="bold" fontcolor="0,0,255" glowing="153,153,153"/>
              </EXACT>
              <EXACT value="Street">
                <TEXTSYMBOL font="Arial" fontsize="14" fontstyle="bold" fontcolor="0,0,0" />
              </EXACT>
              <OTHER>
                <TEXTSYMBOL font="Arial" fontsize="14" fontstyle="regular" fontcolor="0,0,255" />
              </OTHER>  
            </VALUEMAPLABELRENDERER>
          </SCALEDEPENDENTRENDERER>
        </GROUPRENDERER>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>

Back to top