<?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: Arcade - Intersecting a flood polygon with a suburb polygon return the name of the suburb in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105670#M42484</link>
    <description>&lt;P&gt;Thanks, Joanes, for your reply, I tested the code, and it gave me the name of all the suburbs that intersect the flood, Are there any way that if my flood intersects several suburbs, but I click in a specific suburb, only return the name of that suburb?&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 20:07:04 GMT</pubDate>
    <dc:creator>Greta</dc:creator>
    <dc:date>2021-10-07T20:07:04Z</dc:date>
    <item>
      <title>Arcade - Intersecting a flood polygon with a suburb polygon return the name of the suburb</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105467#M42464</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a flood layer and a suburb layer. I wrote an Arcade code in the flood layer so when click returns the information&amp;nbsp; of the flood and the name of the suburb&lt;/P&gt;&lt;P&gt;var intersectLayer = Intersects($feature, FeatureSetByName($map,"Suburb"))&lt;BR /&gt;for(var f in intersectLayer){&lt;BR /&gt;return f.SuburbName&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;But the result in the pop up always has the same suburb name "Suburb 2". I appreciate any help. Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Greta_1-1633598658188.png" style="width: 772px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24721i6CCA9E2A9D1943F0/image-dimensions/772x356?v=v2" width="772" height="356" role="button" title="Greta_1-1633598658188.png" alt="Greta_1-1633598658188.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 09:26:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105467#M42464</guid>
      <dc:creator>Greta</dc:creator>
      <dc:date>2021-10-07T09:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - Intersecting a flood polygon with a suburb polygon return the name of the suburb</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105469#M42465</link>
      <description>&lt;P&gt;You return the first intersected suburb. If a flood feature intersects multiple suburbs (eg su2 and su3), the expression will only return su2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var intersectLayer = Intersects($feature, FeatureSetByName($map,"Suburb"))
var suburbs = []
for(var f in intersectLayer){
  Push(suburbs, f.SuburbName)
}
return Concatenate(suburbs, ", ")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 09:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105469#M42465</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-07T09:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - Intersecting a flood polygon with a suburb polygon return the name of the suburb</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105670#M42484</link>
      <description>&lt;P&gt;Thanks, Joanes, for your reply, I tested the code, and it gave me the name of all the suburbs that intersect the flood, Are there any way that if my flood intersects several suburbs, but I click in a specific suburb, only return the name of that suburb?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 20:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105670#M42484</guid>
      <dc:creator>Greta</dc:creator>
      <dc:date>2021-10-07T20:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - Intersecting a flood polygon with a suburb polygon return the name of the suburb</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105798#M42490</link>
      <description>&lt;P&gt;Not really. Arcade doesn't know where you clicked, just on which feature.&lt;/P&gt;&lt;P&gt;You could disable popups for the flood layer and do all the flood related code in the suburb layer.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 07:29:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105798#M42490</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-08T07:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - Intersecting a flood polygon with a suburb polygon return the name of the suburb</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105829#M42491</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 09:30:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-intersecting-a-flood-polygon-with-a-suburb/m-p/1105829#M42491</guid>
      <dc:creator>Greta</dc:creator>
      <dc:date>2021-10-08T09:30:08Z</dc:date>
    </item>
  </channel>
</rss>

