Moxi Media Inc.
<northarrow> Discussion Forum

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

The <northarrow> element is used to add a north arrow graphic image to the map. The image will automatically be rotated to the direction of true north from the map center. Note: 8-bit PNG images work best.

Note that the position and size attributes must be specified in the units defined by the units attribute of the <template> element. Because most images are 72 dpi, the image sizes correspond nicely to the "points" units type, as points are also 72 units to the inch. Also note that the content of the "size" attribute does not need to match the size of the image. If it is different, the image will be scaled to fit within the space defined in this element.

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

Frequency Description (in this context)
PO+ The <northarrow> 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 image, 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 image print 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 space where the image should be printed. For example, if the units are "points", the entry for an image occupying a two inch square would be size="144,144". Note that the content of the "size" attribute does not need to match the size of the image. If it is different, the image will be scaled to fit within the specified space. Optional, defaults to the true size of the image.
url The URL to the image. The URL can contain the special variable $FRAMEWORK 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 $FRAMEWORK are resolved relative to the location of the XML file. Required.
maximum-scale The maximum scale at which the north arrow will be printed. Numeric value expected, example: maximum-scale="5000000". Optional, the north arrow will be printed at all scales if this attribute is not used.
   

Example:

<northarrow position="460,24" size="30,30" url="$FRAMEWORK/images/northarrow4.png" maximum-scale="5000000"/>