<?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 querying multiple layers, keeping featureSet symbology in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-multiple-layers-keeping-featureset/m-p/709650#M66003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to build an app that when gets a point(for now by click),&amp;nbsp;adds all intersecting items from other layers in a 1 KM radius to the map(via graphic layer).&lt;/P&gt;&lt;P&gt;Attached is an example&amp;nbsp;I made with only 2 layers.&lt;/P&gt;&lt;P&gt;I &lt;STRONG&gt;don't&lt;/STRONG&gt; want the layers to appear on the map in the final version(only added them to make sure it works smoothly) because ill have 7 or 8 of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example I am creating a query and querying each layer individually.&lt;/P&gt;&lt;P&gt;it works but in my final version with all the layers and symbols I don't think its the right way to do it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it possible to query all/multipe layers at the same time?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example the graphic layer returns default geometry.&lt;/P&gt;&lt;P&gt;In the final version I want to &lt;STRONG&gt;keep&lt;/STRONG&gt; the original symbols when adding the featureSets to the graphic layer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it possible to keep them while querying or do I have to set the&amp;nbsp;symbols upfront and iterate&amp;nbsp;through the features&amp;nbsp;adding them one by one?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CODE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="link-titled" href="https://codepen.io/segev-salman/pen/WNrRLLJ?editors=1000" title="https://codepen.io/segev-salman/pen/WNrRLLJ?editors=1000"&gt;https://codepen.io/segev-salman/pen/WNrRLLJ?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Jun 2020 15:48:03 GMT</pubDate>
    <dc:creator>deleted-user-wcpelUUf_XXx</dc:creator>
    <dc:date>2020-06-20T15:48:03Z</dc:date>
    <item>
      <title>querying multiple layers, keeping featureSet symbology</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-multiple-layers-keeping-featureset/m-p/709650#M66003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to build an app that when gets a point(for now by click),&amp;nbsp;adds all intersecting items from other layers in a 1 KM radius to the map(via graphic layer).&lt;/P&gt;&lt;P&gt;Attached is an example&amp;nbsp;I made with only 2 layers.&lt;/P&gt;&lt;P&gt;I &lt;STRONG&gt;don't&lt;/STRONG&gt; want the layers to appear on the map in the final version(only added them to make sure it works smoothly) because ill have 7 or 8 of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example I am creating a query and querying each layer individually.&lt;/P&gt;&lt;P&gt;it works but in my final version with all the layers and symbols I don't think its the right way to do it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it possible to query all/multipe layers at the same time?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example the graphic layer returns default geometry.&lt;/P&gt;&lt;P&gt;In the final version I want to &lt;STRONG&gt;keep&lt;/STRONG&gt; the original symbols when adding the featureSets to the graphic layer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it possible to keep them while querying or do I have to set the&amp;nbsp;symbols upfront and iterate&amp;nbsp;through the features&amp;nbsp;adding them one by one?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CODE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="link-titled" href="https://codepen.io/segev-salman/pen/WNrRLLJ?editors=1000" title="https://codepen.io/segev-salman/pen/WNrRLLJ?editors=1000"&gt;https://codepen.io/segev-salman/pen/WNrRLLJ?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2020 15:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-multiple-layers-keeping-featureset/m-p/709650#M66003</guid>
      <dc:creator>deleted-user-wcpelUUf_XXx</dc:creator>
      <dc:date>2020-06-20T15:48:03Z</dc:date>
    </item>
  </channel>
</rss>

