Moxi Media Inc.
<line> Discussion Forum

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

The <line> element is used to define a straight line to be drawn on the map template. Note that the "from" and "to" attributes must be specified in the units defined by the units attribute of the <template> element, but the width is always defined in points.

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

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

Attributes Description
from The page position of the beginning of the line, 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.
to The page position of the end of the line, 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.
color The color of the line, expressed as a comma separated red,green,blue value, for example, red is "255,0,0". Optional, the default color is black ("0,0,0").
width The width of the line, expressed in points. Integer value expected. A thin line is "1" point. Required.
   

Example:

<line from="22,64" to="570,490" width="1" color="255,0,0"/>