<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Popups in Portal: Is the geometry object available in Arcade expressions with Map Image Layers? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/popups-in-portal-is-the-geometry-object-available/m-p/522867#M3546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;I'm using ArcGIS Enterprise 10.6.1 with ArcGIS Portal 10.6.1 with data in SQL Server 2014.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been attempting to build a ArcGIS Portal map popup with a custom attribute expression written in Arcade to calculate X and Y from the Geometry object.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a dynamically drawn Map Image Layer, '&lt;STRONG&gt;Text($feature)&lt;/STRONG&gt;' returns:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;{"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}}&lt;/BLOCKQUOTE&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a Feature Layer drawn from the same data source, '&lt;STRONG&gt;Text($feature)&lt;/STRONG&gt;' returns:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{"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}}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have the same issue or any work-arounds? I'm thinking about filing a bug report/feature request.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2018 14:33:51 GMT</pubDate>
    <dc:creator>KurtisGagne1</dc:creator>
    <dc:date>2018-12-18T14:33:51Z</dc:date>
    <item>
      <title>Popups in Portal: Is the geometry object available in Arcade expressions with Map Image Layers?</title>
      <link>https://community.esri.com/t5/developers-questions/popups-in-portal-is-the-geometry-object-available/m-p/522867#M3546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;I'm using ArcGIS Enterprise 10.6.1 with ArcGIS Portal 10.6.1 with data in SQL Server 2014.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been attempting to build a ArcGIS Portal map popup with a custom attribute expression written in Arcade to calculate X and Y from the Geometry object.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a dynamically drawn Map Image Layer, '&lt;STRONG&gt;Text($feature)&lt;/STRONG&gt;' returns:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;{"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}}&lt;/BLOCKQUOTE&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a Feature Layer drawn from the same data source, '&lt;STRONG&gt;Text($feature)&lt;/STRONG&gt;' returns:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{"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}}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have the same issue or any work-arounds? I'm thinking about filing a bug report/feature request.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 14:33:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/popups-in-portal-is-the-geometry-object-available/m-p/522867#M3546</guid>
      <dc:creator>KurtisGagne1</dc:creator>
      <dc:date>2018-12-18T14:33:51Z</dc:date>
    </item>
  </channel>
</rss>

