When mixing layers from two different coordinate systems, the IdentifyTask should return the geometries in the coordinate system specified by the spatial reference in the IdentifyParameters. Instead it is always returning the geometries in the original coordinate system of the map layer the results are from, even though this is not the documented behavior in the REST API.
1. Add a Layer from ArcGISOnline that is in Web Mercator 2. Add a dynamic map layer from a custom server in a projected coordinate system (I used 2264). 3. Either: a. Set the SpatialReference IdentifyParameter to Web Mercator b. Don't set the parameter at all c. Set the parameter = to the map SpatialReference object 4. Execute the task, sending in an identify geometry in Web Mercator
To work around I am reprojecting the coordinates back to Web Mercator using the GeometryEngine.
Is there anything that I am missing or doing wrong?