SHIELDSYMBOL

Used in

CONFIG  REQUEST  RESPONSE  

Servers

Image  Feature  

Parent elements

EXACT  OTHER  RANGE  SIMPLELABELRENDERER 

Syntax

<SHIELDSYMBOLAttribute Description Table
     (r)type="interstate | usroad | rect | oval"
     antialiasing="true | false" [true]
     bottomcolor="0,0,0 - 255,255,255" [0,0,250]
     font="Any system font" [Arial]
     fontcolor="0,0,0 - 255,255,255" [0,0,0]
     fontsize="1 - NNN" [12]
     fontstyle="regular | bold | italic | underline | outline | bolditalic" [regular]
     labelmode="full | numericonly" [numericonly]
     middlecolor="0,0,0 - 255,255,255" [0,0,0]
     minsize="1 - NNN" [1]
     shadow="0,0,0 - 255,255,255"
     topcolor="0,0,0 - 255,255,255" [250,0,0]
     transparency="0.0 - 1.0" [1.0]
>

     No Child Elements
</SHIELDSYMBOL >
(r): Attribute or child element is required.

Description

Symbol for drawing a predefined set of highway shields: U.S. Interstate, U.S. Highway, white rectangle, and white oval.

Restrictions


Notes


Attribute Descriptions for SHIELDSYMBOL

AttributeUsage
antialiasingUsed to make edges of labels and symbols smoother. When set to "true", antialiasing is active. Note that the time to generate a map may significantly increase when antialiasing is turned on. However, with the shieldsymbol, the edges of the symbol are noticeably rough when antialiasing is set to "false".
bottomcolorFor interstate symbols, bottomcolor refers to the bottom-most section of the shield. This color is usually blue. For the other symbol types, this attribute is ignored.
fontFont name. The name is case sensitive. If font name uses "&", use "&amp;" instead. For example, ESRI Transportation & Civic should be written as ESRI Transportation &amp; Civic. For Feature Services, the font must reside on the client machine or else the system default font is used.
fontcolorFont color using RGB values.
fontsizeFont size.
fontstyleFont style.
labelmodeDetermines what value is drawn on the shield. If "full" is used, the entire field value, such as I-80, is displayed. If "numericonly" is used, only numbers within the field are displayed. For example, I-80 is displayed as 80.
middlecolorFor interstate symbols, middlecolor refers to the thin stripe separating the top and bottom colors of the shield. This color is usually black. For the other symbol types, this attribute is ignored.
minsizeSets shield size to minimum size in characters. By default, shield expands to length of text.
shadowShadow color using RGB values.
topcolorFor interstate symbols, topcolor refers to the topmost section of the shield. This color is usually red. For the other symbol types, topcolor is the body color.
typeSymbol type.
Back to top 

Examples for SHIELDSYMBOL

Example 1: When in a SIMPLELABELRENDERER.
<?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="-178.215027" miny="18.924782" maxx="-66.969849" maxy="71.406647" name="Initial_Extent" />
        <MAPUNITS units="decimal_degrees" />
        <FILTERCOORDSYS id="4326" />
        <FEATURECOORDSYS id="4326"/>
      </PROPERTIES>
      <WORKSPACES>
         <SHAPEWORKSPACE name="shp_ws-0" directory="<path to USA ESRIDATA>"/>
      </WORKSPACES>
      <LAYER type="featureclass" name="ROADS" visible="true" id="1">
        <DATASET name="ROADS" type="line" workspace="shp_ws-0" />
        <GROUPRENDERER>
          <SIMPLERENDERER>
            <SIMPLELINESYMBOL transparency="1.0" type="solid" width="8" captype="round" jointype="round" color="27,127,27" />
          </SIMPLERENDERER>
          <SIMPLELABELRENDERER field="ROUTE" linelabelposition="placeontop">
            <SHIELDSYMBOL antialiasing="true" font="Arial" shadow="0,0,0" fontstyle="regular" fontsize="10" fontcolor="255,255,255" labelmode="numericonly" type="interstate" />
          </SIMPLELABELRENDERER>
        </GROUPRENDERER>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>

Example 2: When in a VALUEMAPLABELRENDERER.
<?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="-178.215027" miny="18.924782" maxx="-66.969849" maxy="71.406647" name="Initial_Extent" />
        <MAPUNITS units="decimal_degrees" />
        <FILTERCOORDSYS id="4326" />
        <FEATURECOORDSYS id="4326"/>
      </PROPERTIES>
      <WORKSPACES>
         <SHAPEWORKSPACE name="shp_ws-0" directory="<path to USA ESRIDATA>"/>
      </WORKSPACES>
      <LAYER type="featureclass" name="ROADS" visible="true" id="1">
        <DATASET name="ROADS" type="line" workspace="shp_ws-0" />
        <GROUPRENDERER>
          <VALUEMAPLABELRENDERER lookupfield="ADMN_CLASS" labelfield="ROUTE" linelabelposition="placeabove">
          <EXACT value="State Highway" label="State Highway">
            <SHIELDSYMBOL antialiasing="true" font="Arial" fontstyle="regular" fontsize="10" type="oval" />
          </EXACT>
          <EXACT value="US Highway" label="US Highway">
            <SHIELDSYMBOL antialiasing="true" font="Arial" fontstyle="regular" fontsize="10" type="usroad" />
          </EXACT>
          <EXACT value="Interstate" label="Interstate">
            <SHIELDSYMBOL labelmode="numericonly" antialiasing="true" font="Tahoma" fontstyle="italic" fontsize="14" type="interstate" minsize="1"/>
          </EXACT>
          </VALUEMAPLABELRENDERER>
          <SIMPLERENDERER>
            <SIMPLELINESYMBOL type="solid" width="1" captype="round" jointype="round" color="127,127,27" />
          </SIMPLERENDERER>
        </GROUPRENDERER>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>

Back to top