TEXT  Examples

Used in:  CONFIG  
Parent elements:  OBJECT  

<TEXT Attribute Description Table

     coords ="double"
     label ="string"
>

     <TEXTMARKERSYMBOL... />

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


Description:


Restrictions:


Notes:


Attribute Descriptions for TEXT:

Attribute Usage Back to Top
coords Text placement location. Coordinate pair is separated by white space by default. The separator can be changed by using SEPARATORS. If using pixel coordinates, "0 0" is in the lower left corner of map viewer area.
label Text label.
 

Examples for TEXT:

Example 1: When in an acetate layer of a map configuration file. 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="-141.003006" miny="41.913319" maxx="-52.620281" maxy="83.108322" name="Initial_Extent" />
      <MAPUNITS units="decimal_degrees" />
      </PROPERTIES>
      <WORKSPACES>
        <SHAPEWORKSPACE name="shp_ws-16" directory="<path to CANADA ESRIDATA>"/>
      </WORKSPACES>
      <LAYER type="featureclass" name="province" visible="true" id="0">
      <DATASET name="province" type="polygon" workspace="shp_ws-16" />
      <SIMPLERENDERER>
        <SIMPLEPOLYGONSYMBOL fillcolor="227,127,227" filltype="solid" />
      </SIMPLERENDERER>
      </LAYER>
      <LAYER type="acetate" name="Selectedmark" id="acetate">
      <OBJECT units="pixel">
          <TEXT coords="100 100" label="Using text in an Acetate layer">
             <TEXTMARKERSYMBOL fontstyle="regular" fontsize="30" font="Times New Roman" />
          </TEXT>
      </OBJECT>  
      </LAYER>  
    </MAP>
  </CONFIG>
</ARCXML>

Example 2: When in an acetate layer of a GET_IMAGE request. Back to Top
<?xml version="1.0" encoding="UTF-8"?>
<ARCXML version="1.1">
<REQUEST>
  <GET_IMAGE>
    <PROPERTIES>
      <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" />
    </PROPERTIES>
    <LAYER type="acetate" name="acetate" id="acetate">
      <OBJECT units="pixel">
      <TEXT coords="100 100" label="You are here">
         <TEXTMARKERSYMBOL font="Arial" />
      </TEXT>
      </OBJECT>
    </LAYER>
  </GET_IMAGE>
</REQUEST>
</ARCXML>