<?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 Discover coincident polygons in popup with arcade in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/discover-coincident-polygons-in-popup-with-arcade/m-p/1364383#M23325</link>
    <description>&lt;P&gt;All -&amp;nbsp; the goal is to click on a project area ploygon and show in the popup the coincident council district and env justice polygon info in the popup. The project layers are portal feature services. The council districts and env justice map services from other portals.&amp;nbsp;All of these are layers in a web map that part of a web app builder project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We configure the popups in the the Pro project to retain custom popup settings because we do have the need to republish the services which wipes out web map popups so I have been able to&amp;nbsp;accomplish this scenario in ArcGIS Pro using the FeatureSetByName.$map option with all data in the same pro project (which was a feat since I'm not a programmer and newbie to arcade).&amp;nbsp;&lt;SPAN&gt;However, this will not translate into the web app.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I went to the trouble to rebuild the popups in the web map, is this something I can do... intersect 3 layers to show fields from overlaying layers in a popup?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;&amp;lt;sample here with one intersect in Pro&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;FONT face="inherit"&gt;var districts = FeatureSetByName($map, "Council Districts", ['DISTRICT'], true);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;var projects = featuresetbyname ($map, "Projects by &lt;/FONT&gt;Fiscal&lt;FONT face="inherit"&gt;&amp;nbsp;Year");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;var allDistricts = Intersects(districts, $feature);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;var result = " ";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;for (var item in allDistricts){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;var id=item["DISTRICT"];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;result += id + ' ' &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;return result&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The user clicks on a project polygon who's geometry intersects council districts 1, 2, 3 so the popup is configured to display&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;STRONG&gt;Project is in council distrct(s)&lt;/STRONG&gt; 1 2 3"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for any advice!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Dec 2023 23:23:04 GMT</pubDate>
    <dc:creator>StaceyRoberts</dc:creator>
    <dc:date>2023-12-26T23:23:04Z</dc:date>
    <item>
      <title>Discover coincident polygons in popup with arcade</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/discover-coincident-polygons-in-popup-with-arcade/m-p/1364383#M23325</link>
      <description>&lt;P&gt;All -&amp;nbsp; the goal is to click on a project area ploygon and show in the popup the coincident council district and env justice polygon info in the popup. The project layers are portal feature services. The council districts and env justice map services from other portals.&amp;nbsp;All of these are layers in a web map that part of a web app builder project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We configure the popups in the the Pro project to retain custom popup settings because we do have the need to republish the services which wipes out web map popups so I have been able to&amp;nbsp;accomplish this scenario in ArcGIS Pro using the FeatureSetByName.$map option with all data in the same pro project (which was a feat since I'm not a programmer and newbie to arcade).&amp;nbsp;&lt;SPAN&gt;However, this will not translate into the web app.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I went to the trouble to rebuild the popups in the web map, is this something I can do... intersect 3 layers to show fields from overlaying layers in a popup?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT face="times new roman,times"&gt;&lt;SPAN&gt;&amp;lt;sample here with one intersect in Pro&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="times new roman,times"&gt;&lt;FONT face="inherit"&gt;var districts = FeatureSetByName($map, "Council Districts", ['DISTRICT'], true);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;var projects = featuresetbyname ($map, "Projects by &lt;/FONT&gt;Fiscal&lt;FONT face="inherit"&gt;&amp;nbsp;Year");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;var allDistricts = Intersects(districts, $feature);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;var result = " ";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;for (var item in allDistricts){&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;var id=item["DISTRICT"];&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;result += id + ' ' &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;return result&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The user clicks on a project polygon who's geometry intersects council districts 1, 2, 3 so the popup is configured to display&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;STRONG&gt;Project is in council distrct(s)&lt;/STRONG&gt; 1 2 3"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for any advice!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 23:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/discover-coincident-polygons-in-popup-with-arcade/m-p/1364383#M23325</guid>
      <dc:creator>StaceyRoberts</dc:creator>
      <dc:date>2023-12-26T23:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Discover coincident polygons in popup with arcade</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/discover-coincident-polygons-in-popup-with-arcade/m-p/1364876#M23328</link>
      <description>&lt;P&gt;This method should also be possible in the web map using Intersects(). Another example is outlined in the following blog post - see section Spatially-Related Data:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/pump-up-your-pop-ups-with-arcade-and-the-living-atlas/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-online/data-management/pump-up-your-pop-ups-with-arcade-and-the-living-atlas/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Rylee&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 21:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/discover-coincident-polygons-in-popup-with-arcade/m-p/1364876#M23328</guid>
      <dc:creator>rwrenner_esri</dc:creator>
      <dc:date>2023-12-28T21:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Discover coincident polygons in popup with arcade</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/discover-coincident-polygons-in-popup-with-arcade/m-p/1364879#M23329</link>
      <description>&lt;P&gt;That all looks very promising. Thanks for sharing the blog post!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 21:56:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/discover-coincident-polygons-in-popup-with-arcade/m-p/1364879#M23329</guid>
      <dc:creator>StaceyRoberts</dc:creator>
      <dc:date>2023-12-28T21:56:06Z</dc:date>
    </item>
  </channel>
</rss>

