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

The <coordinate-script> element is used to specify a JavaScript file in the IMF installation directory that displays the map coordinates in real time as the user moves their mouse over the map. The coordinate script may format the text display and project or unproject the map coordinate to another projection system. It is likely that you will have to create a script to match your projection.

This element is optional. If you omit it, "$FRAMEWORK/imfCoordinatesMapUnits.js" is used.

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

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

Attributes Description
url The name of a JavaScript script in the IMF installation directory that converts the map coordinates to the ones desired for real-time display. Required.
zone For UTM scripts, this property sets the zone so that it is accessible by the coordinate script to use during the projection process. Optional, unless needed by the coordinate script.
   

Examples:

<!-- Used when the map units are geographic -->
<coordinate-script url="imfCoordinatesGeographic.js"/>

<!-- Used when the map units are UTM -->
<coordinate-script url="imfCoordinatesUTM.js" zone="10"/>

Valid HTML 4.01!