AnsweredAssumed Answered

Is the geometry object available in Arcade expressions with Map Image Layers?

Question asked by kurtis.gagne_NewGold on Dec 12, 2018
Latest reply on Dec 23, 2018 by xander_bakker

I'm using ArcGIS Enterprise 10.6.1 with ArcGIS Portal 10.6.1 with data in SQL Server 2014.

 

I've been attempting to build a popup in an ArcGIS Portal map with a custom attribute expression written in Arcade to calculate X and Y from the Geometry object.

 

However it seems like the Arcade geometry object is Null in all Map Image Layers (these are dynamically drawn and the data is stored in an enterprise geodatabase).

 

On a dynamically drawn Map Image Layer, 'Text($feature)' returns:

{"geometry":null,"attributes":{"Elevation":366.27200317,"GlobalID":"{E132538C-B97D-4464-873B-026D434A93F4}","Layer":"Fire_Hydrant","OBJECTID":1,"POINT_X":426693.043,"POINT_Y":5410332.5313,"Utility_Type":1}}

I do have fields for the X and Y however they are not dynamic when the points moves which is why I want to calculate from the geometry of the point.

 

On a Feature Layer, 'Text($feature)' returns:

{"geometry":{"x":426693.0429999996,"y":5410332.531300001,"spatialReference":{"latestWkid":26915,"wkid":26915}},"attributes":{"Elevation":366.27200317,"GlobalID":"{E132538C-B97D-4464-873B-026D434A93F4}","Layer":"Fire_Hydrant","OBJECTID":1,"POINT_X":426693.043,"POINT_Y":5410332.5313,"Utility_Type":1}}

 

There's no mention of this limitation in the documentation that I can find. If it truly isn't supported in Map Image Layers that throws a wrench in my plans. I can understand tiled map image services not supporting this, but i really think it should work in dynamic ones that support Query operations.

 

Anyone have the same issue or any work arounds? I'm thinking about filing a bug report/feature request.

Outcomes