AnsweredAssumed Answered

Converting geometry($feature) coordinates in a pop-up to decimal degrees?

Question asked by denars on Dec 12, 2019
Latest reply on Dec 17, 2019 by xander_bakker

In arc gis online, I have a point feature map. When I create a new feature, I would like it to calculate the latitude and longitude in decimal degrees.


Right now, I am using the following code in the Arcade, but the coordinates are in the wrong format for my uses.

var geom = Geometry($feature);
return "(" + Round(geom.x, 3) + ", " + Round(geom.y, 3) + ")";


example of the returned data: (-17583389.106, 2474881.059)


What is the right expression for obtaining decimal degrees instead of what is provided above?