Edit: I am open to any solution -- simple is better, GeometryService/Engine whatever works.
Back again, lots of interesting requirements lately!
This time I'm attempting to get the x/y values of point geometry in 102100/3857 as planar coordinates (wkid 2881). Is there a simplified projectAs() function in the ESRI Javascript 3.x?
I've been attempting to implement projection but not having success with the overcoming errors with the geoTransformation.
layer.layerObject.queryFeatures(query, function (f) {
const inSpatialReference = new SpatialReference({ wkid: 102100 });
const spSpatialReference = new SpatialReference({ wkid: 2881 });