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

The <layer-list-legend> element is used to specify one or more legends to appear on the layer list page for a given layer or group. Each legend may be applicable at certain scale ranges.

Frequency Parent Elements (this element is valid within):
PO+ <GROUP>
PO+ <WMS-LAYER>
   

Attributes Description
height The height of the graphic used in the layer list legend, in pixels. Required.
max-scale The maximum scale at which this legend image is applcable to. Positive decimal numeric value expected. Optional. If no max-scale is specified, then this legend is displayed at all scales higher than the min-scale value (if any).
min-scale The minimum scale at which this legend image is applcable to. Positive decimal numeric value expected. Optional. If no min-scale is specified, then this legend is displayed at all scales less than the max-scale value (if any).
url The URL of the graphic used in the layer list legend. The URL can start with 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. Required.
width The width of the graphic used in the layer list legend, in pixels. Required.
   

Frequency Description (in this context)
PO+ The <LAYER-LIST-LEGEND> element is optional and may appear multiple times within the parent element.
   

Example:

<WMS-LAYER name="Some Layer" .....>
  <LAYER-LIST-LEGEND url="legend1.png" width="150" height="75" max-scale="50000"/>
  <LAYER-LIST-LEGEND url="legend2.png" width="200" height="75" min-scale="50000"/>
</WMS-LAYER>

Valid HTML 4.01!