CONFIG  Examples

Used in:  CONFIG  
Parent elements:  ARCXML  

<CONFIG >
     No Attributes

     <ENVIRONMENT... />
     <MAP... />
     <OVERVIEWMAP... />
     <SCALEBAR... />

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


Description:


Restrictions:


Notes:


   

Examples for CONFIG:

Example 1: When in 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="-178.21" miny="18.92" maxx="-66.96" maxy="71.41" name="Initial_Extent" />
        <MAPUNITS units="decimal_degrees" />
      </PROPERTIES>
      <WORKSPACES>
        <SHAPEWORKSPACE name="shp_ws-0" directory="<path to USA ESRIDATA>"/>
      </WORKSPACES>
      <LAYER type="featureclass" name="CITIES" visible="true" id="2">
      <DATASET name="CITIES" type="point" workspace="shp_ws-0" />
      <SIMPLERENDERER>
        <SIMPLEMARKERSYMBOL type="square" width="5" />
      </SIMPLERENDERER>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>

Example 2: When in the default.axl file used in the ArcIMS Java Viewers. 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="185.6901927947995" maxy="90.0" name="Initial_Extent" />
      <MAPUNITS units="decimal_degrees" />
      </PROPERTIES>
      <WORKSPACES>
      <IMAGESERVERWORKSPACE name="mapper_ws-0" url="http://mymachine.domain.com/servlet/com.esri.esrimap.Esrimap" service="background" />
      <FEATURESERVERWORKSPACE name="ifs_ws-1" url="http://mymachine.domain.com/servlet/com.esri.esrimap.Esrimap" service="world" />
      </WORKSPACES>
      <LAYER type="image" name="background" visible="true" id="0">
      <DATASET name="background" type="image" workspace="mapper_ws-0" />
      </LAYER>
      <LAYER type="featureclass" name="Ocean" visible="true" id="1">
      <DATASET name="0" type="polygon" workspace="ifs_ws-1" />
      </LAYER>
      <LAYER type="featureclass" name="Countries" visible="true" id="2">
      <DATASET name="1" type="polygon" workspace="ifs_ws-1" />
      </LAYER>
      <LAYER type="featureclass" name="States" visible="true" id="3">
      <DATASET name="2" type="polygon" workspace="ifs_ws-1" />
      </LAYER>
      <LAYER type="featureclass" name="Provinces" visible="true" id="4">
      <DATASET name="3" type="polygon" workspace="ifs_ws-1" />
      </LAYER>
      <LAYER type="featureclass" name="Cities" visible="true" id="5">
      <DATASET name="4" type="point" workspace="ifs_ws-1" />
      </LAYER>
    </MAP>
    <SCALEBAR backcolor="192,192,192" fontcolor="0,0,0" mapunits="decimal_degrees" scaleunits="feet" screenunits="inches" />
  </CONFIG>
</ARCXML>

Example 3: When in a viewer 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="-178.215027" miny="18.924782" maxx="-66.969849" maxy="71.406647" name="Initial_Extent" />
      <MAPUNITS units="decimal_degrees" />
      </PROPERTIES>
      <WORKSPACES>
         <FEATURESERVERWORKSPACE name="ifs_ws-0" url="http://myserver.domain.com/servlet/com.esri.esrimap.Esrimap" service="world" />
      </WORKSPACES>
      <LAYER type="featureclass" name="STATES" visible="true" id="0">
      <DATASET name="0" type="polygon" workspace="ifs_ws-0" />
      </LAYER>
      <LAYER type="featureclass" name="ROADS" visible="true" id="1">
      <DATASET name="3" type="line" workspace="ifs_ws-0" />
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>