SHIELDSYMBOL | Examples |
<SHIELDSYMBOL | Attribute
Description Table |
type ="interstate |
usroad | rect | oval" antialiasing ="true | false" [true] 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] minsize ="1 - NNN" [1] shadow ="0,0,0 - 255,255,255" > No Child Elements </SHIELDSYMBOL > | |
Bold: Attribute or child element is
required. |
Attribute | Usage | Back to Top |
---|---|---|
antialiasing | Used 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". | |
font | Font name. The name is case sensitive. If font name uses "&", use "&" instead. For example, ESRI Transportation & Civic should be written as ESRI Transportation & Civic. For Feature Services, the font must reside on the client machine or else the system default font is used. | |
fontcolor | Font color using RGB values. | |
fontsize | Font size. | |
fontstyle | Font style. | |
labelmode | Determines 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. | |
minsize | Sets shield size to minimum size in characters. By default, shield expands to length of text. | |
shadow | Shadow color using RGB values. | |
type | Symbol type. |
Example 1: When in a SIMPLELABELRENDERER. | 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="-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. | 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="-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> |