SCALEDEPENDENTRENDERER  Examples

Used in:  CONFIG   REQUEST   RESPONSE  
Servers:  Image   Feature  
Parent elements:  GROUPRENDERER   LAYER   LAYERDEF   LAYERINFO   SCALEDEPENDENTRENDERER  

<SCALEDEPENDENTRENDERER Attribute Description Table

     lower ="double or string"
     upper ="double or string"
>

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

</SCALEDEPENDENTRENDERER >
Bold: Attribute or child element is required.


Description:


Restrictions:


Notes:


Attribute Descriptions for SCALEDEPENDENTRENDERER:

Attribute Usage Back to Top
lower Minimum 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.
upper Maximum 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.
 

Examples for SCALEDEPENDENTRENDERER:

Example 1: Changing road symbology at a scale of 1:20000000. Back to Top
<?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" />
      </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. Back to Top
<?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" />
      </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>