<?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: Intersect two featureLayers in arcgis api js in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-two-featurelayers-in-arcgis-api-js/m-p/1108356#M74985</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your reply, could you please share with me a sample of code it would be very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 11:52:49 GMT</pubDate>
    <dc:creator>benchikh</dc:creator>
    <dc:date>2021-10-18T11:52:49Z</dc:date>
    <item>
      <title>Intersect two featureLayers in arcgis api js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-two-featurelayers-in-arcgis-api-js/m-p/1108243#M74981</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have two featureLayers (RegionsLayer and CommunesLayer) so my goal is to get only the communes under a given Region&lt;STRONG&gt; (spatial query)&lt;/STRONG&gt;, actually I can get a specific region with definitionExpression&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt; &lt;SPAN class=""&gt;const&lt;/SPAN&gt; featureLayerRegion = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;FeatureLayer&lt;/SPAN&gt;({
                    &lt;SPAN class=""&gt;url&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"https://xxxxxxxxxxx/arcgis/rest/services/TEST_SPATIAL/MapServer/3"&lt;/SPAN&gt;,
                    &lt;SPAN class=""&gt;outFields&lt;/SPAN&gt;: [&lt;SPAN class=""&gt;"*"&lt;/SPAN&gt;],
                    &lt;SPAN class=""&gt;definitionExpression&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"ID_Reg = 1"&lt;/SPAN&gt;,
                    &lt;SPAN class=""&gt;popupTemplate&lt;/SPAN&gt;: templateRegion
                });
 map.&lt;SPAN class=""&gt;add&lt;/SPAN&gt;(featureLayerRegion);&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;and now I want to get all the communes from CommuneLayer that belong to this region ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 13:33:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-two-featurelayers-in-arcgis-api-js/m-p/1108243#M74981</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-10-17T13:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect two featureLayers in arcgis api js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-two-featurelayers-in-arcgis-api-js/m-p/1108294#M74983</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/529708"&gt;@benchikh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Here's the link to the API reference which shows the intersecting of 2 feature layers using geometry engine:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#intersects" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#intersects&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 03:26:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-two-featurelayers-in-arcgis-api-js/m-p/1108294#M74983</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-10-18T03:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect two featureLayers in arcgis api js</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-two-featurelayers-in-arcgis-api-js/m-p/1108356#M74985</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your reply, could you please share with me a sample of code it would be very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 11:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/intersect-two-featurelayers-in-arcgis-api-js/m-p/1108356#M74985</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-10-18T11:52:49Z</dc:date>
    </item>
  </channel>
</rss>

