PROBLEM
In ArcGIS Online or Enterprise Map Viewer, XY coordinates can be extracted using Arcade expressions within the attribute table or pop-ups. However, when extracting coordinates from feature layers that use local or projected coordinate systems, the output values are incorrect.
The image below shows the extracted XY coordinates from the projected coordinate system (WKID: 103768) in ArcGIS Online and Enterprise Map Viewer, compared to the actual XY coordinates expected from the source projection.
ArcGIS Online and Enterprise Map Viewer use WGS 1984 Web Mercator (Auxiliary Sphere) as the default coordinate system. Although calculations are performed using the spatial reference in which a feature layer is published, the Map Viewer does not support on-the-fly reprojection of geometries during coordinate extraction or field calculations. Consequently, dynamic projection is not applied, which results in incorrect XY coordinate values when working with feature layers that use local or other projected coordinate systems.
As Map Viewer does not support on-the-fly reprojection during field calculations, it is necessary to perform geometry calculations in ArcGIS Pro and republish the feature layer with the updated attributes to ensure accurate XY coordinates.
Note: Alternatively, extract the data from the feature layers using the Extract Data tool in Map Viewer. Refer to ArcGIS Online: Extract Data or Portal for ArcGIS: Extract Data for more information.
Article ID: 000037067
Get help from ArcGIS experts
Download the Esri Support App