Moxi Media Inc.
<box> Discussion Forum

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

The <box> element is used to define a rectangular shape to be drawn on the map template. Note that the position and size attributes must be defined in the units defined by the units attribute of the <template> element, and the outline-width is always defined in points.

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

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

Attributes Description
position The page position of the lower left corner of the rectangle, 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 rectangle size, 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 rectangle. For example, if the units are "points", the entry for a two inch square would be size="144,144". If the units are points, and the box contained attributes like position="72,72" size="144,144", then the rectange will be drawn from page coordinates (inches) 1,1 to 3,3. Required.
fill-color The fill color of the rectangle, expressed as a comma separated red,green,blue value, for example, red is "255,0,0". Optional, the box will not be filled if this attribute is not used.
outline-color The color of the outline of the rectangle, 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").
outline-width The width of the outline of the rectangle, expressed in points. Integer value expected. A thin line is "1" point. Required.
   

Examples:

<box position="22,64" size="570,490" outline-width="1"/>

<box position="22,64" size="570,490" outline-width="1"
     fill-color="255,255,255" outline-color="255,0,0"/>