<?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: Pull features where clicked when using Arcade Intersects in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1550343#M62007</link>
    <description>&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;Thank you for implement this new Arcade Popup property.&lt;/P&gt;&lt;P&gt;Sure that many users will found it very useful&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 06:17:26 GMT</pubDate>
    <dc:creator>RaimonReventós</dc:creator>
    <dc:date>2024-10-21T06:17:26Z</dc:date>
    <item>
      <title>Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/739236#M36451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the Arcade Intersects&amp;nbsp;function to pull intersecting layer information and place it within a popup. I've come across a situation where multiple polygons (red border) from one layer intersect my main layer (yellow squares) and the popup only returns a single feature. Is it possible to pull the intersecting feature information where clicked on the map?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: The eastern side of the red line is zone 13 and the western side is zone 36. When clicked only the zone 13 information is populated within the popup. Is it possible to pull the information from the intersecting layer where clicked on the map?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="466" src="https://community.esri.com/legacyfs/online/502717_pastedImage_1.png" width="660" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arcade Expression:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var intersectLayer = Intersects(FeatureSetByName($map,"Deer Management Zones"), $feature)&lt;/P&gt;&lt;P&gt;for (var f in intersectLayer){&lt;BR /&gt;return text(f.DMZ)&lt;BR /&gt;}$map&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 17:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/739236#M36451</guid>
      <dc:creator>DaveK</dc:creator>
      <dc:date>2020-08-07T17:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/739237#M36452</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/388467" target="_blank"&gt;David Krady&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you configure an Arcade expression for a pop-up that should appear when clicking on a feature, you do not have access the actual location where the user clicked. You will only have the clicked feature geometry and not the exact location. (I hope this will be provided at some point in the future).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case the expression contains a loop and you use the return inside the loop.&amp;nbsp;When the&amp;nbsp;sequence hits the return, it will exit the arcade expression. So, you will only have the&amp;nbsp;first feature (attribute) it found in the process.&amp;nbsp; To return multiple features, you will need to use a variable that you populate with the results and return that variable after the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the example below:&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; intersectLayer &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;$map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Deer Management Zones"&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="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; cnt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;intersectLayer&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;"DMZ(s) found:"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// first check if you have any intersecting features&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cnt &lt;SPAN class="operator token"&gt;&amp;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;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; intersectLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        result &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; TextFormatting&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;NewLine &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; f&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DMZ&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;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"no DMZs found..."&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/739237#M36452</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T07:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1085574#M41555</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1108"&gt;@XanderBakker&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;One year later, do you know if the function of clicking on a feature can access to the XY location of the point now existing ?&lt;/P&gt;&lt;P&gt;I would like to have a pop-up in which I can return the information of the layers that intersects this point of identification.&lt;/P&gt;&lt;P&gt;Thanks for your answer&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 03:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1085574#M41555</guid>
      <dc:creator>DeborahDAVID</dc:creator>
      <dc:date>2021-08-04T03:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1086592#M41613</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/361605"&gt;@DeborahDAVID&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;From what I have seen we still don't have this functionality in Arcade today, but I agree with you that it would be great to have.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:16:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1086592#M41613</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-08-06T14:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1196279#M47124</link>
      <description>&lt;P&gt;A year after &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/361605"&gt;@DeborahDAVID&lt;/a&gt;&amp;nbsp;post ESRI still hasn't solved this basic functionality? Any reason?&lt;/P&gt;&lt;P&gt;is possible, using Arcade, emulate the IDENTIFY command (as in ArcMap, MapObjects, ArcView 3.x...) but instead of using the object $feature show in a POP-UP the field values of the visible layers at location where the user has clicked on the map?&lt;/P&gt;&lt;P&gt;Thnks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 10:45:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1196279#M47124</guid>
      <dc:creator>RaimonReventós</dc:creator>
      <dc:date>2022-07-27T10:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1196568#M47138</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/415723"&gt;@RaimonReventós&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Almost a year ago I posted an idea (internally) with the title "&lt;STRONG&gt;Provide the location clicked in the pop-up to the Arcade expression&lt;/STRONG&gt;". However, the idea is still open...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 21:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1196568#M47138</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2022-07-27T21:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1196687#M47142</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your answer, I`ll try to work in a solution&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 11:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1196687#M47142</guid>
      <dc:creator>RaimonReventós</dc:creator>
      <dc:date>2022-07-28T11:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1541679#M61638</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/17874"&gt;@RussRoberts&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/585739"&gt;@EmilyGeo&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/611120"&gt;@bbollin&lt;/a&gt;&amp;nbsp;&amp;nbsp;has this functionality been implemented yet?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 00:59:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1541679#M61638</guid>
      <dc:creator>MK13</dc:creator>
      <dc:date>2024-09-24T00:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1550159#M62004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/668647"&gt;@MK13&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This has been implemented. Please check out the $userInput profile variable which allows you to retrieve the geometry of the location the user clicked and drill down to provide information on other features from other layers in the pop-up.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/profiles/popup/#profile-variables" target="_blank"&gt;https://developers.arcgis.com/arcade/profiles/popup/#profile-variables&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 19:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1550159#M62004</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2024-10-18T19:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1550343#M62007</link>
      <description>&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;Thank you for implement this new Arcade Popup property.&lt;/P&gt;&lt;P&gt;Sure that many users will found it very useful&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 06:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1550343#M62007</guid>
      <dc:creator>RaimonReventós</dc:creator>
      <dc:date>2024-10-21T06:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1556434#M62265</link>
      <description>&lt;P&gt;Is there a simple arcade example of the $userInput variable to pull values from a layer the click intersects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 18:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1556434#M62265</guid>
      <dc:creator>MJH</dc:creator>
      <dc:date>2024-11-07T18:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pull features where clicked when using Arcade Intersects</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1564834#M62688</link>
      <description>&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/whats-new-in-arcade-1-26/" target="_blank"&gt;What's New in Arcade (v1.26)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 19:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pull-features-where-clicked-when-using-arcade/m-p/1564834#M62688</guid>
      <dc:creator>ZenMasterZeke</dc:creator>
      <dc:date>2024-12-04T19:05:00Z</dc:date>
    </item>
  </channel>
</rss>

