LAYERINFO  Examples

Used in:  RESPONSE  
Parent elements:  SERVICEINFO  

<LAYERINFO Attribute Description Table

     id ="string"
     type ="featureclass | image | acetate"
     maxscale ="string"
     minscale ="string"
     name ="string"
     visible ="true | false"
>


     When parent element is LAYERINFO and type is acetate:
          No child elements

     When parent element is LAYERINFO and type is featureclass:
     <FCLASS... />
     <EXTENSION... />
     <GROUPRENDERER... />
     <SCALEDEPENDENTRENDERER... />
     <SIMPLELABELRENDERER... />
     <SIMPLERENDERER... />
     <VALUEMAPLABELRENDERER... />
     <VALUEMAPRENDERER... />

     When parent element is LAYERINFO and type is image:
     <ENVELOPE... />

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


Description:


Restrictions:


Notes:


Attribute Descriptions for LAYERINFO:

Attribute Usage Back to Top
id Reference to unique layer ID as defined in map configuration file.
maxscale Maximum scale to display map in map units per pixel. Does not apply unless maxscale is set in MapService.
minscale Minimum scale to display map in map units per pixel. Does not apply unless maxscale is set in MapService.
name Layer name as defined in map configuration file.
type Shows type of layer as defined in map configuration file.
visible Specifies whether or not layer is visible.
 

Examples for LAYERINFO:

Example 1: When in a SERVICEINFO response. Back to Top
<?xml version="1.0" encoding="UTF8"?>
<ARCXML version="1.1">
  <RESPONSE>
    <SERVICEINFO>
      <ENVIRONMENT>
        <LOCALE language="en" country="US" />
        <UIFONT name="Arial" color="0,0,0" size="12" style="regular" />
        <SEPARATORS cs=" " ts=";"/>
        <SCREEN dpi="96"/>
        <IMAGELIMIT pixelcount="1048576" />
      </ENVIRONMENT>
      <PROPERTIES>
        <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" />
        <MAPUNITS units="decimal_degrees" />
      </PROPERTIES>
      <LAYERINFO type="featureclass" visible="true" name="Countries" id="1">
        <FCLASS type="polygon">
          <FIELD name="AREA" type="8" size="12" precision="3" />
          <FIELD name="NAME" type="12" size="40" precision="0" />
          <FIELD name="ABBREVNAME" type="12" size="12" precision="0" />
          <FIELD name="FIPS_CODE" type="12" size="2" precision="0" />
          <FIELD name="WB_CNTRY" type="12" size="3" precision="0" />
          <FIELD name="HYPERLINK" type="12" size="60" precision="0" />
          <FIELD name="#SHAPE#" type="-98" size="0" precision="0" />
          <FIELD name="#ID#" type="-99" size="16" precision="0" />
        </FCLASS>
      </LAYERINFO>
    </SERVICEINFO>
  </RESPONSE>
</ARCXML>