I'm using smart forms in ArcGIS Field Maps and I need to calculate the x coordinate in the feature layer's original coordinate system (California state plane III, EPSG:2227) when a new feature is added to the map.
The feature layer was originally in 2227 when published to AGOL but when I try to use the geometry function in Arcade it uses 3857 (web map coordinates).
Geometry($originalFeature)["x"]
returns:
number: -13610189.8467
snyway I can add a parameter like "spatialReference": 2227 to get the expression to return values in state plane?
Not sure if it is an option for you, but if you create your own basemaps in EPSG:2227 and use that in the web map, then the entire web map will be in that coordinate system and
Geometry($feature).X