L.LatLng.UTM.js
/*
        * LatLonToUTMXY
        *
        * Converts a latitude/longitude pair to x and y coordinates in the
        * Universal Transverse Mercator projection.
        *
        * Inputs:
        *   lat - Latitude of the point, in radians.
        *   lon - Longitude of the point, in radians.
        *   zone - UTM zone to be used for calculating values for x and y.
        *          If zone is less than 1 or greater than 60, the routine
        *          will determine the appropriate zone from the value of lon.
        *
        * Outputs:
        *   xy - A 2-element array where the UTM x and y values will be stored.
        *
        * Returns:
        *   The UTM zone used for calculating the values of x and y.
        *
        */
LatLonToUTMXY
Converts a latitude/longitude pair to x and y coordinates in the
Universal Transverse Mercator projection.

Latitude of the point, in radians.
lon - Longitude of the point, in radians.
zone - UTM zone to be used for calculating values for x and y.
If zone is less than 1 or greater than 60, the routine
will determine the appropriate zone from the value of lon.

A 2-element array where the UTM x and y values will be stored.

The UTM zone used for calculating the values of x and y.
LatLonToUTMXY Converts a latitude / longitude pair to x and y coordinates in the Universal Transverse Mercator projection . Latitude of the point in radians . lon - Longitude of the point in radians . zone - UTM zone to be used for calculating values for x and y . If zone is less than 1 or greater than 60 the routine will determine the appropriate zone from the value of lon . A 2 - element array where the UTM x and y values will be stored . The UTM zone used for calculating the values of x and y .
function LatLonToUTMXY(lat, lon, zone, xy) {
            MapLatLonToXY(lat, lon, UTMCentralMeridian(zone), xy);
            xy[0] = xy[0] * UTMScaleFactor + 500000.0;
            xy[1] = xy[1] * UTMScaleFactor;
            if (xy[1] < 0.0) xy[1] = xy[1] + 10000000.0;
            return zone;
        }
function LatLonToUTMXY ( lat , lon , zone , xy ) { MapLatLonToXY ( lat , lon , UTMCentralMeridian ( zone ) , xy ) ; xy [ 0 ] = xy [ 0 ] * UTMScaleFactor + 500000.0 ; xy [ 1 ] = xy [ 1 ] * UTMScaleFactor ; if ( xy [ 1 ] < 0.0 ) xy [ 1 ] = xy [ 1 ] + 10000000.0 ; return zone ; }
LatLonToUTMXY
 Converts a latitude/longitude pair to x and y coordinates in the
 Universal Transverse Mercator projection.
LatLonToUTMXY Converts a latitude / longitude pair to x and y coordinates in the Universal Transverse Mercator projection .
/* Adjust easting and northing for UTM system. */