<?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 Re: Using Arcade Geometry functions in ArcGIS Online in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55930#M2692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Nae Nay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a blog that outlines a simple example of how to populated a pop up with intersecting&lt;/P&gt;&lt;P&gt;feature information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2018 19:13:32 GMT</pubDate>
    <dc:creator>KellyGerrow</dc:creator>
    <dc:date>2018-12-10T19:13:32Z</dc:date>
    <item>
      <title>Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55918#M2680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that the December update of ArcGIS Online included&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/function-reference/geometry_functions" title="https://developers.arcgis.com/arcade/function-reference/geometry_functions"&gt;Geometry Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;. That is really swell, but I am trying to get my head around this and without the actual access to other features, I&amp;nbsp;have problems seeing the benefits to this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3063"&gt;Kelly Gerrow&lt;/A&gt;‌; or anyone else, is it possible provide some real-world examples of how this can be used. I suppose I could hard code another geometry storing the json in the arcade expression, but it does not seem as the right way to do this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Especially the SetGeometry intrigues me&amp;nbsp; (&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#setgeometry" title="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#setgeometry"&gt;Geometry Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;) I can imagine this it returns an error if I buffer a point feature and try to set the geometry, but when I&amp;nbsp;apply it on a polygon, it returns that the geometry is immutable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any&amp;nbsp;example would be highly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 19:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55918#M2680</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-12-12T19:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55919#M2681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple example of what can be done could be&amp;nbsp;visualizing the distance to a given point, using this simple script:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; json_pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'{"x":-8414809.305,"y":695061.198,"spatialReference":{"wkid":102100,"latestWkid":3857}}'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; given_pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Point&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;json_pnt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Geometry&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; dist &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Distance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; given_pnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'meters'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; dist&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this result (if I use the distance for size and color):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/390708_pastedImage_1.png" style="width: 620px; height: 455px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be interesting if the points are dynamic and provided by for instance GeoEvent in real time, but the fact that I have to include a hard coded point in the expression does not seem right to me.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:07:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55919#M2681</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-10T22:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55920#M2682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to symbolise a point hosted feature layer based on whether they intersect a polygon hosted feature layer in the same map using the Intersects function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 style="color: #4c4c4c; background-color: #ffffff; font-weight: 300; font-size: 1.69949rem; margin: 0px 0px 1.55rem;"&gt;Intersects&lt;/H3&gt;&lt;H5 style="color: #4c4c4c; background-color: #ffffff; font-weight: 300; font-size: 1.2019rem; margin: 0px 0px 1.55rem;"&gt;Intersects( geometry1, geometry2) -&amp;gt; returns: Boolean&lt;/H5&gt;&lt;P&gt;If I access the points geometry using Geometry($feature), how do I access the geometries of the polygons to test the intersection? Hard coding the polygon geometry as per the above example is not an option.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 21:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55920#M2682</guid>
      <dc:creator>MarcGraham1</dc:creator>
      <dc:date>2017-12-13T21:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55921#M2683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point there is no way to access another geometry if it isn't hard coded in the Arcade expression, as fas as I understand. Today I talked to (actually wrote with) &lt;A href="https://community.esri.com/people/KGerrow-esristaff"&gt;KGerrow-esristaff&lt;/A&gt;‌ and she will post more details on what you can do at this moment and what to expect in the near feature.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 00:02:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55921#M2683</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-12-14T00:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55922#M2684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make things a bit more dynamic (still on a hard coded geometry) I&amp;nbsp;created an expression of a buffer of a point that grows in time and each point is given a symbology based on the distance from that growing circle:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; start_time &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2017&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;11&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;14&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; curr_time &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Now&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; dif_sec &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DateDiff&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;curr_time&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; start_time&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"seconds"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; buf_dist &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Abs&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dif_sec&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; json_pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'{"x":-8415299.294,"y":692928.204,"spatialReference":{"wkid":102100,"latestWkid":3857}}'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; source_pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Point&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;json_pnt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Geometry&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; buf &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Buffer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;source_pnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; buf_dist&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"meter"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; dist &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Distance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; buf&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'meters'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dist &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Danger!"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dist &lt;SPAN class="operator token"&gt;&amp;lt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;500&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Warning: 0 - 500m"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dist &lt;SPAN class="operator token"&gt;&amp;lt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Warning: 500m - 1km"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dist &lt;SPAN class="operator token"&gt;&amp;lt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1500&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Warning: 1km - 1.5km"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dist &lt;SPAN class="operator token"&gt;&amp;lt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2500&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Warning: 1.5km - 2.5km"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"No danger (&amp;gt;2.5km)"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; result&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another one for the size of the symbol (inverted in this case to have larger symbols for those point closer to the circle):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; start_time &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2017&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;11&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;14&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; curr_time &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Now&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; dif_sec &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DateDiff&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;curr_time&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; start_time&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"seconds"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; buf_dist &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Abs&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dif_sec&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; json_pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'{"x":-8415299.294,"y":692928.204,"spatialReference":{"wkid":102100,"latestWkid":3857}}'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; source_pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Point&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;json_pnt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; pnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Geometry&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; buf &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Buffer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;source_pnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; buf_dist&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"meter"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; dist &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Distance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; buf&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'meters'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; dist&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which results in something like this when you make use of the new Firefly symbols available in ArcGIS Online:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="390817" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/390817_ArcadeGeometryFunctions_GrowingBuffer.gif" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:07:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55922#M2684</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-10T22:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55923#M2685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the Geometry function in Arcade you currently need to hard code the geometry as &lt;A href="https://community.esri.com/people/xander_bakker"&gt;xander_bakker&lt;/A&gt; has demonstrated in his examples! Thanks Xander, they look great. In upcoming releases more functionality will be added to make it easier to integrate existing geometries in the web map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have specific workflows that you want to accomplish with Geometry functions in Arcade, please let us know your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy New Year,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 17:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55923#M2685</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2017-12-29T17:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55924#M2686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still struggling with why ESRI is trying to build a whole new language when other languages exist that can be adapted... &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 17:33:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55924#M2686</guid>
      <dc:creator>Syvertson</dc:creator>
      <dc:date>2018-03-02T17:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55925#M2687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that you mentioned that here&amp;nbsp;&lt;A href="https://community.esri.com/thread/210294-how-do-i-check-an-arcade-variable-to-see-if-it-is-numeric"&gt;https://community.esri.com/thread/210294-how-do-i-check-an-arcade-variable-to-see-if-it-is-numeric&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55925#M2687</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-03-02T18:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55926#M2688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is about a year old now, but has this been updated now to where you can pull in a second geometry from the web map? I am looking to run a "within" query that will perform a point in polygon analysis to count&amp;nbsp;the points that fall within the polygon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2018 16:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55926#M2688</guid>
      <dc:creator>deleted-user-MOQmQl8Sb2hg</dc:creator>
      <dc:date>2018-12-07T16:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55927#M2689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the update on December 5th it is possible to access other hosted feature services from the same datastore (service) or present in the same map. I have a blog in Spanish with an example provided by Esri here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-12833" target="_blank"&gt;Mejoras en Arcade en ArcGIS Online con la Actualización de 5 de diciembre del 2018&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To&amp;nbsp;visualize the effect, you could have precincts and crimes:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/431171_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... and maybe you are interested to know which crimes are within a precinct to show a summery in the pop-up of the precinct polygon like this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/431172_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is done with the following Arcade Expression:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; used &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; distinctlist &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; counter &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; crime &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; crimeList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; intersectPrecinct &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Intersects&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$datastore&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Crimes"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; f &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; intersectPrecinct&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;hasKey&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;used&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; f&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ucrdesc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;f&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ucrdesc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;f&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ucrdesc&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; k &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; used&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; crime &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; k &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;":"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; used&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;k&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;TextFormatting&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;NewLine
&amp;nbsp;&amp;nbsp;&amp;nbsp; crimeList &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; crime
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; crimeList&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will notice on line 6 there is a bit of magic going on: The "&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;FeatureSetByName($datastore,"Crimes")&lt;/SPAN&gt;", manages the access to the&amp;nbsp;feature class crimes inside the same $datastore. On the same line an intersect is done to obtain only those crimes in the current precinct. After this a dictionary is created with an entry for each crime type and the related count. This information is structures at the end of the expression so that the pop-up will show this list of crime types and the corresponding count.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in short, yes it is possible now to do this using Arcade v1.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55927#M2689</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-10T22:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55928#M2690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mind to give me the link of your demo? Because I am a beginner in Arcade so i don't understand the variable of your code which line I should modify. So, please guide me if i would like to select the overlapping layer and it is shown in a pop-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nae&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 09:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55928#M2690</guid>
      <dc:creator>Nae_NayHirunpongchai</dc:creator>
      <dc:date>2018-12-10T09:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55929#M2691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/348027"&gt;Nae Nay Hirunpongchai&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The crime dataset that was used in the first example was published to the early adopters site, but I'm not sure if this could be shared outside. The second example is based on some clients data and I can't share that either. I could&amp;nbsp;generate a random dataset to explain how the concept works, but in stead of doing that, why don't you explain what you are trying to achieve and if you can share (a sample of) the data we could look&amp;nbsp;if that is something which can be achieved using the new Arcade functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 12:34:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55929#M2691</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-12-10T12:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55930#M2692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Nae Nay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a blog that outlines a simple example of how to populated a pop up with intersecting&lt;/P&gt;&lt;P&gt;feature information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade"&gt;https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2018/12/10/overlapping-features-in-pop-ups-quick-introduction-to-using-featuresets-with-arcade&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55930#M2692</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2018-12-10T19:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55931#M2693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/gisday.02"&gt;gisday.02&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to the great blog post by &lt;A href="https://community.esri.com/migrated-users/3063"&gt;Kelly Gerrow&lt;/A&gt;‌, there is a new blog post by &lt;A href="https://community.esri.com/migrated-users/2319"&gt;Paul Barker&lt;/A&gt;&amp;nbsp; here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/product/mapping/whats-new-with-arcade-taking-a-stroll-through-featuresets-part-1/" title="https://www.esri.com/arcgis-blog/products/product/mapping/whats-new-with-arcade-taking-a-stroll-through-featuresets-part-1/"&gt;What’s new with Arcade: Taking a stroll through FeatureSets (Part 1)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I just posted another one here:&amp;nbsp;&lt;A href="https://community.esri.com/docs/DOC-12773"&gt;Using FeatureSetBy functions in Arcade to drill-down to other layers and tables&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2018 22:29:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55931#M2693</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-12-12T22:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55932#M2694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ Hi Xander, sorry to hijack this post, but I know you are very experienced with pop-up customization in AGOL. I wanted to ask if you knew if it is possible to change the color of fields displayed in a popup when using the popup display setting "A list of field attributes" alot of the customization I see online has all been for a custom attribute display (which isnt ideal for me as I want to make an app where by the fields can be edited).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any input!&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 15:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55932#M2694</guid>
      <dc:creator>LukeAllen2</dc:creator>
      <dc:date>2020-01-30T15:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55933#M2695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/317534"&gt;Luke Allen&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you noticed, creating a table and assign colores can be accomplished using custom HTML in the pop-up. At this moment this requires multiple Arcade expression. In the (near?) future it will be able to return html enabling the use of a single Arcade expression to create the HTML output you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For an editing workflow, I'm afraid that the&amp;nbsp;custom HTML code will not be used. This workflow will probably require custom coding the editing experience. Can you share a sketch of what you want to obtain to evaluate if there are any other plausible options?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 16:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55933#M2695</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-30T16:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55934#M2696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;, thats ok I understand, thank you for taking your time to respond to my post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My coding capabilities are rather limited shall we say so this isnt a deal breaker for me. My web app was just a basic web app with a feature service that could have the fields updated using the smart editor widget. For one of the fields I have a domain (string values) of 'Not Tested' 'Not Applicable' and 'Tested', I was just thinking it would be nice to be able to color code them within the attribute window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Web App Builder Pic" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/479946_2020-01-30_13-51-53.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 18:53:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55934#M2696</guid>
      <dc:creator>LukeAllen2</dc:creator>
      <dc:date>2020-01-30T18:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55935#M2697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/317534"&gt;Luke Allen&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the pop-up could be color code, yet that would require a custom HTML configuration. The Smart editor widget will not be influenced by this. However, why don't you visualize your polygons using a combination of WQ&amp;nbsp;Status and WQ Result showing which ones have been tested and which one not and in case tested the result of the test?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 19:03:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55935#M2697</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-30T19:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55936#M2698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;, actually my polygons are coded by the domain I mentioned earlier (unfortunately the screenshot only shows some of the untested (orange) parcels, just for extra 'bells and whistles' I was going to color code the attribute field red for not tested and green for tested on the popup - like i said not a major deal breaker, I just was wondering if it could be done &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 19:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/55936#M2698</guid>
      <dc:creator>LukeAllen2</dc:creator>
      <dc:date>2020-01-30T19:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade Geometry functions in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/1007286#M37620</link>
      <description>&lt;P&gt;I really really want this too!&amp;nbsp; Especially as we largely work with live datasets rather than static copies which is why the intersect script is invaluable to us.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 04:59:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-arcade-geometry-functions-in-arcgis-online/m-p/1007286#M37620</guid>
      <dc:creator>NaomiBegg</dc:creator>
      <dc:date>2020-12-07T04:59:23Z</dc:date>
    </item>
  </channel>
</rss>

