Moxi Media Inc.
<LAYER> Tree View | Discussion Forum
IMF Developer's Guide » Map Configuration » <LAYER>  

The <LAYER> element is used to organize layers into folders and groups. To set properties of the layers, use the <WMS-LAYER> element instead.

Frequency Parent Elements (this element is valid within):
PO+ <FOLDER>
PR+ <GROUP>
   

Attributes Description
id Used to find the layer to add to the folder or group. Must match the id of a WMS-LAYER defined in the LAYERS section. One of the id or title attribute is required. Not required if title is used.
title Used to find the layer to add to the folder or group. Must match the title of a WMS-LAYER defined in the LAYERS section. One of the id or title attribute is required. Not required if id is used.
   

Frequency Description (in this context)
PO+ The <FOLDER> element may contain multiple <LAYER> elements.
PR+ The <GROUP> element must contain at least one <LAYER> element.
   

Examples:

<FOLDER name="Grids" open="true">
  <LAYER title="BCGS Grid" /> 
  <LAYER title="NTS Grid" /> 
</FOLDER>

<FOLDER name="Some Layers" open="true">
  <LAYER title="BCGS Grid" /> 
  <LAYER title="NTS Grid" /> 
  <GROUP name="Elevation" visible="false" can-identify="false">
    <LAYER title="Spot Elevation - Points (1:2M)" />
    <LAYER title="Contours - Lines (1:250K)" />
    <LAYER title="Elevation - Lines (1:20K)" />
    <LAYER title="Elevation - Points (1:20K)" />
    <LAYER title="Elevation - Text (1:20K)" /> 
  </GROUP>
</FOLDER>

Valid HTML 4.01!