Moxi Media Inc.
<index-map-script> Discussion Forum

IMF Developer's Guide » Site Configuration » <index-map-script>  

The <index-map-script> element is used to override the core IMF script used to display the index-map. The index map script is called automatically by the map when it refreshes, usually calling the core script imfIndexMap.jsp. This element allows you to specify an alternate script that is refreshed in the same way without changing the scripts that call the index map script.

Note: The name of the index map script defined in your button or tab that open the index map should match the value of the url specified in this element. See examples below.

Frequency Parent Elements (the <index-map-script> element is valid within):
POS1 <site-config>
   

Frequency Description (in this context)
POS1 The <index-map-script> element may appear once in the <site-config> element in the specified sequence.
   

Attributes Description
url The URL of the alternate index map script. 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.
   

Examples:

<!-- Index map script with highlighted rectangle or star. -->
<index-map-script url="$FRAMEWORK/imfIndexMap.jsp" />
...
<button name="Index Map"
        url="$FRAMEWORK/imfIndexMap.jsp"
        target="dataFrame"
        hint="Index Map"
        status="Open an index map showing the position of the main map."
        help="$FRAMEWORK/help/indexMapButton.txt"
        graphic="$FRAMEWORK/tools/indexmap.gif"
        width="16" height="16" />

<!-- Index map script with crosshair. -->
<index-map-script url="$FRAMEWORK/imfIndexMapCrosshair.jsp" />
...
<button name="Index Map"
        url="$FRAMEWORK/imfIndexMapCrosshair.jsp"
        target="dataFrame"
        hint="Index Map"
        status="Open an index map showing the position of the main map."
        help="$FRAMEWORK/help/indexMapButton.txt"
        graphic="$FRAMEWORK/tools/indexmap.gif"
        width="16" height="16" />