<?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: How to restrict Search to a certain extent? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-restrict-search-to-a-certain-extent/m-p/506080#M47060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hemming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You set the searchExtent on the Search widgets source array:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/158365"&gt;https://community.esri.com/thread/158365&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 17:03:41 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-06-22T17:03:41Z</dc:date>
    <item>
      <title>How to restrict Search to a certain extent?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-restrict-search-to-a-certain-extent/m-p/506079#M47059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am replacing my GeoCoder &amp;nbsp;Widget with Search Widget. In GeoCoder i can restrict my search in a certain area by doing this:&lt;BR /&gt;arcgisGeocoder: true,&lt;BR /&gt; arcgisGeocoder: {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;placeholer: "Enter a US street address",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;searchExtent: new esri.geometry.Extent({&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;xmin: -8631362.9367,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ymin: 4655884.590300001,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;xmax: -8532954.2208,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ymax: 4772527.9208,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;spatialReference: { "wkid": 102100 }&lt;BR /&gt; }),&lt;BR /&gt;&lt;SPAN&gt; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgeocode.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FGeocodeServer" rel="nofollow" target="_blank"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;As i was looking into the search widget in JS 4.3, i could not find equivalent &amp;nbsp;options. Any ideas of how to set such options in Search Widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 16:37:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-restrict-search-to-a-certain-extent/m-p/506079#M47059</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2017-06-22T16:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Search to a certain extent?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-restrict-search-to-a-certain-extent/m-p/506080#M47060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hemming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You set the searchExtent on the Search widgets source array:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/158365"&gt;https://community.esri.com/thread/158365&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 17:03:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-restrict-search-to-a-certain-extent/m-p/506080#M47060</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-22T17:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict Search to a certain extent?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-restrict-search-to-a-certain-extent/m-p/506081#M47061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometime you just have to be patient and read through the doc. Yes, the is a property for sources array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here is how i did and it worked.&lt;/P&gt;&lt;P&gt;this.geocoder = new Search({&lt;BR /&gt; container: "addrSearch",&lt;BR /&gt; autoSelect: false, &lt;BR /&gt; view: this.view, &lt;BR /&gt; searchAllEnabled: false,&lt;BR /&gt; sources: [&lt;BR /&gt; {&lt;BR /&gt;&lt;SPAN&gt; locator: new Locator("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgeocode.arcgis.com%2Farcgis%2Frest%2Fservices%2FWorld%2FGeocodeServer" rel="nofollow" target="_blank"&gt;https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer&lt;/A&gt;&lt;SPAN&gt;"),&lt;/SPAN&gt;&lt;BR /&gt; singleLineFieldName: "SingleLine",&lt;BR /&gt; outFields: ["Addr_type"],&lt;BR /&gt; name: "World GeoCoding Service",&lt;BR /&gt; minSuggestCharacters: 3,&lt;BR /&gt; autoNavigate: false,&lt;BR /&gt; popupEnabled: false, &lt;BR /&gt; searchExtent: Extent({&lt;BR /&gt; xmin: -8631362.9367,&lt;BR /&gt; ymin: 4655884.590300001,&lt;BR /&gt; xmax: -8532954.2208,&lt;BR /&gt; ymax: 4772527.9208,&lt;BR /&gt; spatialReference: { "wkid": 102100 }&lt;BR /&gt; }),&lt;BR /&gt; placeholder: "Enter a US street address",&lt;BR /&gt; resultSymbol:null, &lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 17:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-restrict-search-to-a-certain-extent/m-p/506081#M47061</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2017-06-22T17:25:41Z</dc:date>
    </item>
  </channel>
</rss>

