Moxi Media Inc.
<legend> Discussion Forum

IMF Developer's Guide » Print Configuration » <legend>  

The <legend> element is used to add a legend created by ArcIMS to the map. To add a static legend, use an <image> instead.

Note that the position and size attributes must be specified in the units defined by the units attribute of the <template> element. The dpi attribute is always specified in points.

Frequency Parent Elements (the <legend> element is valid within):
PO <template>
   

Frequency Description (in this context)
PO The <legend> element may appear only once within the <template> element in any position.
   

Attributes Description
position The page position of the lower left corner of the legend, expressed in the units specified in the units attribute of the <template> element. The position should be two numbers separated by a comma (with no white space), representing the x and y location. For example, if the units are "points", a value of "72,72" would indicate a position one inch from the left side and bottom side of the page. Required.
size The print size of the legend, expressed in the units defined in the "units" attribute of the <template> element. The size should be two numbers separated by a comma (with no white space), representing the width and the height of the space where the legend image should be printed. For example, if the units are "points", the entry for an legend occupying a two inch square would be size="144,144". Required.
dpi A numeric value indicating the resolution of the legend. Legend images are always created at 72 dpi, so higher values can be used to request a larger image to print in the same space, resulting in a higher resolution index map. Note that high resolutions will result in small text. Try using dpi="144". Optional, defaults to "72".
columns A numeric value indicating the number of columns in the legend. If greater than one, the legend will wrap at the bottom to the next column. Optional, defaults to "1".
layer-font-size The font size for the layer names in the legend, in points. Optional, defaults to "10".
value-font-size The font size for the values in the legend, in points. Optional, defaults to "9".
swatch-height The height of the legend swatches, expressed in the units defined in the "units" attribute of the <template> element. Optional, defaults to 12 points.
swatch-width The width of the legend swatches, expressed in the units defined in the "units" attribute of the <template> element. Optional, defaults to 18 points.
cell-spacing The distance between the legend swatches, in points. Optional, defaults to 3 points.
   

Examples:

<legend position="595,65" size="173,489" dpi="108"/>

<legend position="22,64" size="600,310" dpi="144" columns="3"/>