<?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 ArcGis API for JavaScript Search Error in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-search-error/m-p/1064033#M73365</link>
    <description>&lt;P&gt;I am trying to use the search tool but it keeps saying that&amp;nbsp;&lt;SPAN&gt;There were no results found for "Seattle".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Search Error" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14827i2A983C1BB8F7197A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Search Error" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Search Error&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this is the code i am using on codepen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta charset = "UTF-8"/&amp;gt;&lt;BR /&gt;&amp;lt;meta name = "viewport" content ="Initial-sacale = 1, maximum-sacale = 1, user-scalable = no"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt; Display a Map &amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;html,&lt;BR /&gt;body,&lt;BR /&gt;#viewDiv {&lt;BR /&gt;padding: 0;&lt;BR /&gt;margin: 0;&lt;BR /&gt;height: 100%;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;link rel = "stylesheet" href = "&lt;A href="https://js.arcgis.com/4.19/esri/themes/light/main.css" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.19/esri/themes/light/main.css&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://js.arcgis.com/4.19/" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.19/&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script&amp;gt; require(["esri/config",&lt;BR /&gt;"esri/Map",&lt;BR /&gt;"esri/views/MapView",&lt;BR /&gt;"esri/widgets/BasemapToggle",&lt;BR /&gt;"esri/widgets/BasemapGallery", "esri/widgets/Search"],&lt;BR /&gt;function (esriConfig,&lt;BR /&gt;Map,&lt;BR /&gt;MapView,&lt;BR /&gt;BasemapToggle,&lt;BR /&gt;BasemapGallery,&lt;BR /&gt;Search)&lt;BR /&gt;{ esriConfig.apiKey = "API-KEY";&lt;BR /&gt;const map = new Map&lt;BR /&gt;({&lt;BR /&gt;basemap: "arcgis-navigation" });&lt;BR /&gt;const view = new MapView({&lt;BR /&gt;map: map,&lt;BR /&gt;center: [-118.805, 34.027],&lt;BR /&gt;// Longitude, latitude&lt;BR /&gt;zoom: 13,&lt;BR /&gt;// Zoom level&lt;BR /&gt;container: "viewDiv"&lt;BR /&gt;// Div element&lt;BR /&gt;});&lt;BR /&gt;&lt;STRONG&gt;const search = new Search({ //Add Search widget&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;view: view&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;});&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;view.ui.add(search, "top-right");&lt;/STRONG&gt;&lt;BR /&gt;const basemapGallery = new BasemapGallery({&lt;BR /&gt;view: view,&lt;BR /&gt;source: {&lt;BR /&gt;query: {&lt;BR /&gt;title: '"World Basemaps for Developers" AND owner:esri'&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}); view.ui.add(basemapGallery,"bottom-right");&lt;BR /&gt;const basemapToggle = new BasemapToggle({&lt;BR /&gt;view: view,&lt;BR /&gt;nextBasemap: "arcgis-imagery"&lt;BR /&gt;});&lt;BR /&gt;view.ui.add(basemapToggle,"bottom-right");&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 14:55:30 GMT</pubDate>
    <dc:creator>HamzaM</dc:creator>
    <dc:date>2021-06-02T14:55:30Z</dc:date>
    <item>
      <title>ArcGis API for JavaScript Search Error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-search-error/m-p/1064033#M73365</link>
      <description>&lt;P&gt;I am trying to use the search tool but it keeps saying that&amp;nbsp;&lt;SPAN&gt;There were no results found for "Seattle".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Search Error" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14827i2A983C1BB8F7197A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Search Error" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Search Error&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this is the code i am using on codepen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta charset = "UTF-8"/&amp;gt;&lt;BR /&gt;&amp;lt;meta name = "viewport" content ="Initial-sacale = 1, maximum-sacale = 1, user-scalable = no"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt; Display a Map &amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;html,&lt;BR /&gt;body,&lt;BR /&gt;#viewDiv {&lt;BR /&gt;padding: 0;&lt;BR /&gt;margin: 0;&lt;BR /&gt;height: 100%;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;link rel = "stylesheet" href = "&lt;A href="https://js.arcgis.com/4.19/esri/themes/light/main.css" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.19/esri/themes/light/main.css&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://js.arcgis.com/4.19/" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.19/&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script&amp;gt; require(["esri/config",&lt;BR /&gt;"esri/Map",&lt;BR /&gt;"esri/views/MapView",&lt;BR /&gt;"esri/widgets/BasemapToggle",&lt;BR /&gt;"esri/widgets/BasemapGallery", "esri/widgets/Search"],&lt;BR /&gt;function (esriConfig,&lt;BR /&gt;Map,&lt;BR /&gt;MapView,&lt;BR /&gt;BasemapToggle,&lt;BR /&gt;BasemapGallery,&lt;BR /&gt;Search)&lt;BR /&gt;{ esriConfig.apiKey = "API-KEY";&lt;BR /&gt;const map = new Map&lt;BR /&gt;({&lt;BR /&gt;basemap: "arcgis-navigation" });&lt;BR /&gt;const view = new MapView({&lt;BR /&gt;map: map,&lt;BR /&gt;center: [-118.805, 34.027],&lt;BR /&gt;// Longitude, latitude&lt;BR /&gt;zoom: 13,&lt;BR /&gt;// Zoom level&lt;BR /&gt;container: "viewDiv"&lt;BR /&gt;// Div element&lt;BR /&gt;});&lt;BR /&gt;&lt;STRONG&gt;const search = new Search({ //Add Search widget&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;view: view&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;});&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;view.ui.add(search, "top-right");&lt;/STRONG&gt;&lt;BR /&gt;const basemapGallery = new BasemapGallery({&lt;BR /&gt;view: view,&lt;BR /&gt;source: {&lt;BR /&gt;query: {&lt;BR /&gt;title: '"World Basemaps for Developers" AND owner:esri'&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}); view.ui.add(basemapGallery,"bottom-right");&lt;BR /&gt;const basemapToggle = new BasemapToggle({&lt;BR /&gt;view: view,&lt;BR /&gt;nextBasemap: "arcgis-imagery"&lt;BR /&gt;});&lt;BR /&gt;view.ui.add(basemapToggle,"bottom-right");&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 14:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-search-error/m-p/1064033#M73365</guid>
      <dc:creator>HamzaM</dc:creator>
      <dc:date>2021-06-02T14:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGis API for JavaScript Search Error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-search-error/m-p/1064089#M73367</link>
      <description>&lt;P&gt;It seems that simply removing the apiKey and logging in manually allows the search widget to work normally. I'm not sure why this is happening. Hopefully someone else has an idea.&lt;/P&gt;&lt;P&gt;EDIT:&lt;BR /&gt;That apiKey is supposed to be private so I recommend redacting that.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 14:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-for-javascript-search-error/m-p/1064089#M73367</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-06-02T14:53:46Z</dc:date>
    </item>
  </channel>
</rss>

