Moxi Media Inc.
<LAYERS> Tree View | Discussion Forum

IMF Developer's Guide » Map Configuration » <LAYERS>  

The <LAYERS> element defines the WMS layers that are used to produce the map. The layers will be drawn in the order defined, so put opaque layers such as images and polygons before transparent layers such as lines, points and annotation. At least one WMS-LAYER is required.

Note that the map configuration file elements must appear in sequence, and the <LAYERS> element must immediately follow the <SERVICES> element in the map configuration XML file. For best results, validate your XML against the schema for this file format.

Frequency Parent Elements (this element is valid within):
PRS1 <MAP-CONFIG>
   

Frequency Child Elements
R+ <WMS-LAYER>
   

Frequency Description (in this context)
PRS1 The <LAYERS> element must appear exactly once in the <MAP-CONFIG> element in the sequence specified.
R+ The <LAYERS> element must contain one or more <WMS-LAYER> elements.
   

Example:

<LAYERS>
   <WMS-LAYER
    title="National Parks"
    wms-service-id="GAV"
    wms-layer-name="m30GA00032b"
    wms-style="Blank"
    wms-queryable="true"
    legend="http://www.geoarctic.com/publ/alberta/wms/getMapLayerLegend.php?layer=m30GA00032b"
    metadata-url="http://www.geoarctic.com/publ/alberta/wms/Data/Environmental/Protected_Areas/Parks_FGDC.xml"
    visible="true" /> 
</LAYERS>