Hi,
My colleague has created a layer with popups in AGOL. I receive the following error when using the layer in ArcGIS JS SDK 4.30.9.
Execution error - Cannot work with geometry in this spatial reference. It is different to the execution spatial reference
Encountered an error when evaluating the arcade expression 'Geometry($feature).z' (primitive: 'label-override', property: 'textString'). The map is in EPSG:3857 and so is the layer.
What am I doing wrong?
Do you mind returning `GetEnvironment()` from your expression to see what spatial reference is set to the Arcade context? I suggest returning the following in your popup as the popup context is different than the Arcade editor context:
Text(GetEnvironment().spatialreference)
Post the response you see in the popup...
Hi,
I've attached a screenshot with
Text(GetEnvironment().spatialreference)
I see that I wrote PopUp, while I meant to write labels in my previous message