Moxi Media Inc.
<layer-list-legend> Discussion Forum
IMF Developer's Guide » Layer 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. There are attributes in the layer and group elements that can be used instead to set up a single legend for a layer.

Frequency Parent Elements (the <layer-list-legend> element is valid within):
PO+ <dynamic-feature-layer>
PO+ <dynamic-image-layer>
PO+ <group>
PO+ <layer>
PO+ <wms-layer>
   

Frequency Description (in this context)
PO+ The child element may appear one or more times within the parent element in any order.
O+ The child element may appear one or more times within the <folder> element in any order.
   

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.
   

Example:

<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"/>
</layer>

Valid HTML 4.01!