<?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: Search Widget w/ a lot of layer sources. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387722#M83779</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;,&amp;nbsp;I had planned on a looping function but just wanted to make sure I wasn't missing something elsewhere in the API. As far as the use case is concerned, my end user(s) have a lot of layers that are loaded into the map (with visibility defaulted to false) and they want to be able to search for any feature in any of those layers.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 21:18:57 GMT</pubDate>
    <dc:creator>jjgarrett0</dc:creator>
    <dc:date>2024-02-27T21:18:57Z</dc:date>
    <item>
      <title>Search Widget w/ a lot of layer sources.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387704#M83775</link>
      <description>&lt;P&gt;I am implementing the Search Widget in an application and I am trying to figure out a better way to configure the sources for the widget.&lt;/P&gt;&lt;P&gt;I have a feature service that contains 60+ layers in it and the requirements are to be able to search all of the layers with the Search Widget. Do I really have to manually define every single layer as a LayerSearchSource or is there a better way that I can just give it the feature service url and it can pull all of the layers in as a search source utilizing default values?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 20:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387704#M83775</guid>
      <dc:creator>jjgarrett0</dc:creator>
      <dc:date>2024-02-27T20:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget w/ a lot of layer sources.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387716#M83777</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/749072"&gt;@jjgarrett0&lt;/a&gt;,&amp;nbsp;thank you for posting your question here. As far as I know, yes, layers have to be configured individually as a LayerSearchSource. Typically, a looping function should suffice. However, can you share a bit more about your use case, and why you want to have 60+ layers as sources in a Search widget?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387716#M83777</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2024-02-27T21:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget w/ a lot of layer sources.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387718#M83778</link>
      <description>&lt;P&gt;I think that's what you'd have to do if you utilized the Search Widget, and I don't know about the performance of 60+ layers but it'd probably work at least. If you have only one (or a small number of ) field to search in each layer maybe you could mimic the Search Widget by using the where clause directly on the REST web service, then you could compile the possible features selected in whatever way you wanted from the resulting JSON, as in this REST call:&lt;/P&gt;&lt;P&gt;&lt;A title="Valley Metro Bus Stops" href="https://services2.arcgis.com/2t1927381mhTgWNC/arcgis/rest/services/BusStopsWAmenities/FeatureServer/0/query?where=stopID+%3D+5655&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;resultType=none&amp;amp;distance=0.0&amp;amp;units=esriSRUnit_Meter&amp;amp;relationParam=&amp;amp;returnGeodetic=false&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;featureEncoding=esriDefault&amp;amp;multipatchOption=xyFootprint&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;defaultSR=&amp;amp;datumTransformation=&amp;amp;applyVCSProjection=false&amp;amp;returnIdsOnly=false&amp;amp;returnUniqueIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnExtentOnly=false&amp;amp;returnQueryGeometry=false&amp;amp;returnDistinctValues=false&amp;amp;cacheHint=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;having=&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnExceededLimitFeatures=true&amp;amp;quantizationParameters=&amp;amp;sqlFormat=none&amp;amp;f=html&amp;amp;token=" target="_blank" rel="noopener"&gt;https://services2.arcgis.com/2t1927381mhTgWNC/arcgis/rest/services/BusStopsWAmenities/FeatureServer/0/query?where=stopID+%3D+5655&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;resultType=none&amp;amp;distance=0.0&amp;amp;units=esriSRUnit_Meter&amp;amp;relationParam=&amp;amp;returnGeodetic=false&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;featureEncoding=esriDefault&amp;amp;multipatchOption=xyFootprint&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;defaultSR=&amp;amp;datumTransformation=&amp;amp;applyVCSProjection=false&amp;amp;returnIdsOnly=false&amp;amp;returnUniqueIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;returnExtentOnly=false&amp;amp;returnQueryGeometry=false&amp;amp;returnDistinctValues=false&amp;amp;cacheHint=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;having=&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;returnExceededLimitFeatures=true&amp;amp;quantizationParameters=&amp;amp;sqlFormat=none&amp;amp;f=html&amp;amp;token=&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:13:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387718#M83778</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2024-02-27T21:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget w/ a lot of layer sources.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387722#M83779</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;,&amp;nbsp;I had planned on a looping function but just wanted to make sure I wasn't missing something elsewhere in the API. As far as the use case is concerned, my end user(s) have a lot of layers that are loaded into the map (with visibility defaulted to false) and they want to be able to search for any feature in any of those layers.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:18:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387722#M83779</guid>
      <dc:creator>jjgarrett0</dc:creator>
      <dc:date>2024-02-27T21:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget w/ a lot of layer sources.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387723#M83780</link>
      <description>&lt;P&gt;Ah yea, that could be another route. I'll look into it. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-w-a-lot-of-layer-sources/m-p/1387723#M83780</guid>
      <dc:creator>jjgarrett0</dc:creator>
      <dc:date>2024-02-27T21:23:44Z</dc:date>
    </item>
  </channel>
</rss>

