Moxi Media Inc.
<layer-config-xml> Discussion Forum
IMF Developer's Guide » Site Configuration » <layer-config-xml>  

The <layer-config-xml> element specifies the location of the XML file used for configuring the layers, folders and groups. See Layer Configuration XML Reference for more information about configuring layer properties.

This element is optional. If it doesn't appear in the site configuration XML file, or if the URL is not valid, the layers will appear in the layer list in a folder named "All Layers", and layers will use the default properties and settings as set in the ArcIMS map service.

Frequency Parent Elements (the <layer-config-xml> element is valid within):
POS1 <site-config>
   

Frequency Description (in this context)
POS1 The <layer-config-xml> element is optional and may appear once within the <site-config> element in the specified sequence.
   

Attributes Description
url The URL of the XML document containing the layer configuration. The URL can contain the special variable $IMF to specify that the document is relative to the IMF installation directory. Absolute URLs may also be used. URLs that don't start with http: or $IMF are resolved relative to the location of the XML file.
   

Examples:

<!- A layer configuration file in the same directory as the site configuration file -->
<layer-config-xml url="layer.xml" />

<!- A layer configuration file at some other location -->
<layer-config-xml url="http://myserver.com/layer.xml" />

<!- A layer configuration file relative to the IMF installation directory -->
<layer-config-xml url="$IMF/sites/mysite/layer.xml" />

<!- A layer configuration file in a location relative to the site configuration file -->
<layer-config-xml url="../anotherdirectory/layer.xml" />

Valid HTML 4.01!