TEXT

Used in

CONFIG  REQUEST  RESPONSE  

Servers

Image  ArcMap  

Parent elements

OBJECT 

Syntax

<TEXTAttribute Description Table
     (r)coords="double"
     (r)label="string"
>

     (r)<TEXTMARKERSYMBOL... />

</TEXT >
(r): Attribute or child element is required.

Description

Places text on an acetate layer.

Restrictions


Notes


Attribute Descriptions for TEXT

AttributeUsage
coordsText 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 the map viewer area.
labelText label.
Back to top 

Examples for TEXT

Example 1: When in an acetate layer of a map configuration file.
<?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" />
      <FILTERCOORDSYS id="4326" />
      <FEATURECOORDSYS id="4326"/>
      </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.
<?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>

Back to top

Search code: @arcxml_TEXT


Search code: @TEXT