<?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 Search Widget Set Extent in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-set-extent/m-p/1294344#M81281</link>
    <description>&lt;P&gt;Hello, I am updating one of my legacy applications and I used to do this to set the extent for the search widget:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/3/jshelp/tutorial_search.html" target="_blank"&gt;Search widget | Guide | ArcGIS API for JavaScript 3.43 | ArcGIS Developer&lt;/A&gt;&amp;nbsp;but I do not see a link to how to do it using the new Version of the API for 4.26. Is it just as simple as this?&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 01:18:45 GMT</pubDate>
    <dc:creator>LillieCollins</dc:creator>
    <dc:date>2023-05-31T01:18:45Z</dc:date>
    <item>
      <title>Search Widget Set Extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-set-extent/m-p/1294344#M81281</link>
      <description>&lt;P&gt;Hello, I am updating one of my legacy applications and I used to do this to set the extent for the search widget:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/3/jshelp/tutorial_search.html" target="_blank"&gt;Search widget | Guide | ArcGIS API for JavaScript 3.43 | ArcGIS Developer&lt;/A&gt;&amp;nbsp;but I do not see a link to how to do it using the new Version of the API for 4.26. Is it just as simple as this?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 01:18:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-set-extent/m-p/1294344#M81281</guid>
      <dc:creator>LillieCollins</dc:creator>
      <dc:date>2023-05-31T01:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget Set Extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-set-extent/m-p/1294860#M81283</link>
      <description>&lt;P&gt;As shown in the 3.x documentation you linked to, setting the extent for a source looked like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;search.sources[0].searchExtent = extent;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 4.x, it would look like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;search.sources.getItemAt(0).filter = {geometry:extent};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See also &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources" target="_self"&gt;Search.sources&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#filter" target="_self"&gt;LayerSearchSource.filter&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 02:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-set-extent/m-p/1294860#M81283</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-06-01T02:32:50Z</dc:date>
    </item>
  </channel>
</rss>

