Hi,
I'm trying to emulate the screen cap below into some JS.
In the SDK for Project there is no parameter specified for the Input Spatial Reference like there in the above screen cap of the Geometry Service I am using, so I'm not quite sure how I specify that in my JS. Here is what I have so far:
view.on("click", function (event) {
event.stopPropagation();
var northing = event.mapPoint.y;
var easting = event.mapPoint.x;
var geomSer = new GeometryService("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer");
var params = new ProjectParameters();
params.geometries = [event];
params.outSpatialReference = 4326;
var newPoint = geomSer.project(params);
view.popup.open({
title: "Latitiude: " + newPoint.y + ", Longitude: " + newPoint.x,
content: "Northing: " + northing + ", Easting: " + easting,
location: event.mapPoint
});
});
Any guidance is appreciated.