SIMPLEMARKERSYMBOL  Examples

Used in:  CONFIG   REQUEST   RESPONSE  
Parent elements:  EXACT   LINE   OTHER   POINT   POLYGON   RANGE   SIMPLERENDERER  

<SIMPLEMARKERSYMBOL Attribute Description Table

     antialiasing ="true | false"  [false]
     color ="0,0,0 - 255,255,255"  [0,0,0]
     outline ="0,0,0 - 255,255,255"
     overlap ="true | false"  [true]
     shadow ="0,0,0 - 255,255,255"
     transparency ="0.0 - 1.0"  [1.0]
     type ="circle | triangle | square | cross | star"  [circle]
     usecentroid ="true | false"  [false]
     width ="1 - NNN"  [3]
>

     No child elements
</SIMPLEMARKERSYMBOL >


Description:


Restrictions:


Notes:


Attribute Descriptions for SIMPLEMARKERSYMBOL:

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.
color Symbol color using RGB values.
outline Outline color using RGB values.
overlap Determines if labels can overlap this symbol. When true, labels can overlap. When false, labels will not overlap the symbol. If labels are not drawing as expected, check if overlap is set to false for this symbol or any other symbol in the MapService.
shadow Shadow color using RGB values.
transparency Value to set percentage of transparency. 1.0 is 0 percent transparent. 0.0 is 100 percent transparent.
type Symbol type.
usecentroid By default, a marker symbol used on polygon layers draws markers at all polygon vertices. If usecentroid is true, marker is placed in the centroid of the polygon. If multiple polygon parts exist, the marker falls on the part with the biggest area.
width Symbol width in pixels.
 

Examples for SIMPLEMARKERSYMBOL:

Example 1: 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" />
      </PROPERTIES>
      <WORKSPACES>
         <SHAPEWORKSPACE name="shp_ws-0" directory="<path to WORLD ESRIDATA>"/>
      </WORKSPACES>
      <LAYER type="featureclass" name="cities" visible="true" id="1">
        <DATASET name="cities" type="point" workspace="shp_ws-0" />
        <SIMPLERENDERER>
          <SIMPLEMARKERSYMBOL transparency="1.0" color="0,255,0" type="square" width="16" shadow="0,0,0" outline="255,0,0" antialiasing="true" overlap="true"/>
        </SIMPLERENDERER>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>

Example 2: When using usecentroid with a polygon layer. 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="-180.0" miny="-90.0" maxx="180.0" maxy="83.59603881835938" name="Initial_Extent" />
        <MAPUNITS units="decimal_degrees" />
      </PROPERTIES>
      <WORKSPACES>
        <SHAPEWORKSPACE name="shp_ws-6" directory="<path to WORLD ESRIDATA>" />
      </WORKSPACES>
      <LAYER type="featureclass" name="CNTRY94" visible="true" id="0">
        <DATASET name="CNTRY94" type="polygon" workspace="shp_ws-6" />
        <GROUPRENDERER>
          <SIMPLERENDERER>
            <SIMPLEPOLYGONSYMBOL fillcolor="127,227,227" />
          </SIMPLERENDERER>
          <SIMPLERENDERER >
            <SIMPLEMARKERSYMBOL usecentroid="true" color="127,127,227" width="18" />
          </SIMPLERENDERER>
        </GROUPRENDERER>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>