Moxi Media Inc.
<mxd-template> Discussion Forum
IMF Developer's Guide » Site Configuration » <mxd-template>  

The <mxd-template> element is used to specify multiple related ArcMap based ArcIMS services that can be used for creating high quality prints or plots. In order to use this element, you must have the ArcMap services set up with the same layer IDs as the map service being used in the viewer. If you are using an ArcMap service in the viewer, and just want to plot using the template associated with it, this element is not required. If there are multiple templates defined, the imfPrintScaledArcMapForm.jsp script will display a list of templates for the user to choose from.

Note that it is possible to use regular ArcIMS image services for the viewer, and ArcMap services for plotting if the layer IDs are the same in all services.

Frequency Parent Elements (this element is valid within):
POS+ <site-config>
   

Frequency Description (in this context)
POS+ This element may appear multiple times within the <site-config> element in the specified sequence.
   

Attributes Description
name The name of the template that will be displayed in the dialog that the user selects a plotting template from. Required.
server The name or IP address of the ArcIMS server used for the ArcMap template. Required.
service The name of the ArcIMS ArcMap service used for the plotting of the template. Required.
servlet The servlet path of the ArcIMS server used for the ArcMap template. Optional, defaults to "/servlet/com.esri.esrimap.Esrimap".
dataframe The name of the dataframe in the ArcMap template that contains the main map area. Required. Usually "Layers".
   

Example:

<!-- Five ArcMap services that support plotting from this service -->
<mxd-template name="E Size - Landscape"
              server="slkapps5.idir.bcgov"
              service="esize_template"
              servlet="/servlet/com.esri.esrimap.Esrimap"
              dataframe="Layers"/>
<mxd-template name="D Size - Landscape"
              server="slkapps5.idir.bcgov"
              service="dsize_template"
              servlet="/servlet/com.esri.esrimap.Esrimap"
              dataframe="Layers"/>
<mxd-template name="C Size - Landscape"
              server="slkapps5.idir.bcgov"
              service="csize_template"
              servlet="/servlet/com.esri.esrimap.Esrimap"
              dataframe="Layers"/>
<mxd-template name="B Size - Landscape"
              server="slkapps5.idir.bcgov"
              service="bsize_template"
              servlet="/servlet/com.esri.esrimap.Esrimap"
              dataframe="Layers"/>
<mxd-template name="A Size - Landscape"
              server="slkapps5.idir.bcgov"
              service="asize_template"
              servlet="/servlet/com.esri.esrimap.Esrimap"
              dataframe="Layers"/>

Valid HTML 4.01!