I thought I would create a pop up and add a link to Google Streetmap for the location of the geometry. Although my my points were published in WGS 1984, when I retrieve the X Y properties of the Geometry in Arcade the coordinates are return in Web Mercator Auxiliary Sphere:
However, these are not supported.
How can I get my Latitude and Longitude coordinates without storing them as attributes in my hosted featurelayer?
I just did a test with some sample code from the help and it throws an error since the spatialReference specified (4326) is different from the map:
Looking at the REST endpoint I noticed that the spatial reference of my hosted feature layer is 102100 (Web Mercator Auxiliary Sphere). This happened probably since I added the content to ArcGIS Online using a ZIP with the fgdb in it. Question: When you add a fgdb from your computer is the spatial reference always projected to 102100?
I will publish the layer using Pro to see if anything will be different.