<?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: Custom basemap not loading after first click in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-basemap-not-loading-after-first-click/m-p/1249916#M79971</link>
    <description>&lt;P&gt;HI there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I just tested your code snippet with JS API version 4.25 and was not able to reproduce the behavior you described. Here is the codepen:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/OJOVKyP?editors=1000" target="_blank"&gt;https://codepen.io/U_B_U/pen/OJOVKyP?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 15:51:17 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2023-01-20T15:51:17Z</dc:date>
    <item>
      <title>Custom basemap not loading after first click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-basemap-not-loading-after-first-click/m-p/1248733#M79936</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I have added a custom basemap to the basemap gallery. I am using Arcgis JavaScript 4&lt;/P&gt;&lt;P&gt;this.basemapGallery = new BasemapGallery({&lt;BR /&gt;view: this.map.mapView,&lt;BR /&gt;container: this.basemapGalleryDiv,&lt;BR /&gt;source: {&lt;BR /&gt;query: {&lt;BR /&gt;title: "Custom Basemap",&lt;BR /&gt;},&lt;BR /&gt;updateBasemapsCallback: (items) =&amp;gt; {&lt;BR /&gt;if (this.customBasemap) {&lt;BR /&gt;items.push(this.customBasemap);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;console.log(items);&lt;BR /&gt;&lt;BR /&gt;return items;&lt;BR /&gt;// return items;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the basemap gallery with custom basemap.but it works only on first click. When I go to any other basemap and comes back to the custom basemap, the basemap does not load. Any idea why its not working as expected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 16:01:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-basemap-not-loading-after-first-click/m-p/1248733#M79936</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-01-17T16:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom basemap not loading after first click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-basemap-not-loading-after-first-click/m-p/1249916#M79971</link>
      <description>&lt;P&gt;HI there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I just tested your code snippet with JS API version 4.25 and was not able to reproduce the behavior you described. Here is the codepen:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/OJOVKyP?editors=1000" target="_blank"&gt;https://codepen.io/U_B_U/pen/OJOVKyP?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 15:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-basemap-not-loading-after-first-click/m-p/1249916#M79971</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-01-20T15:51:17Z</dc:date>
    </item>
  </channel>
</rss>

