I am using Arcgis Javascript api. I have two points comes from Google maps like this
x:-111.67095840000002 y: 32.7558935
I wanna use this points on my Arcgis map. My map spatial reference is using wkt WGS_1984_UTM_Zone.... I mean it is not using wkid.
theX = results[0].geometry.location.lng();
theY = results[0].geometry.location.lat();
console.log("Longitude: " + theX + " Latitude: " + theY);
var pointESRI = new Point(Number(theX), Number(theY), map.spatialReference);
console.log(pointESRI);
var mp = WebMercatorUtils.geographicToWebMercator(pointESRI);
console.log(mp);
pointESRI = new Point({ "x": mp.x, "y": mp.y, "spatialReference": map.spatialReference });
WebMercatorUtils.geographicToWebMercator() methot not converting point as appropriate to WGS84 reference.