I'm using ArcGIS for Javascript 3.31
The users have the ability to select NAD27 or NAD83 as the projection and 16N or 17N as the zone. Then when the user clicks on the map, the application is supposed to convert the clicked point on the map to UTM coordinates in the selected projection/zone.
NAD27 16N = wkid 26716
NAD27 17N = wkid 26717
NAD83 16N = wkid 26916
NAD83 17N = wkid 26917
Code snippet looks like this:
var point = new Point(e.mapPoint.x, e.mapPoint.y, new SpatialReference({ wkid: <wkid from above>}));
var utmCoords = coordinateFormatter.toUtm(point, "north-south-indicators", true);
Anytime this runs I get the following:
Uncaught b:
name: "coordinate-formatter: invalid-spatial-reference"
message: "wkid is not valid"
Any suggestions?