<?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 Changing basemaps using activeBasemap = &amp;lt;basemapid&amp;gt; no longer works in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-basemaps-using-activebasemap-lt-basemapid/m-p/1161336#M76925</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just upgraded from 4.22 to 4.23 and this setting the BaseMap Gallery widget active basemap using basemapGallery.activeBasemap = 'hybrid' (for example) fails with an error:&lt;/P&gt;&lt;P&gt;Uncaught TypeError: Cannot read properties of undefined (reading 'spatialReference')&lt;/P&gt;&lt;P&gt;I assume this has to to with the addition of allowing basemaps to have different spatial references in 4.23 but I can't seem to find and documentation on this particular issue.&lt;/P&gt;&lt;P&gt;Any help would be great.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 19:25:50 GMT</pubDate>
    <dc:creator>MichaelSnook</dc:creator>
    <dc:date>2022-04-05T19:25:50Z</dc:date>
    <item>
      <title>Changing basemaps using activeBasemap = &lt;basemapid&gt; no longer works</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-basemaps-using-activebasemap-lt-basemapid/m-p/1161336#M76925</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just upgraded from 4.22 to 4.23 and this setting the BaseMap Gallery widget active basemap using basemapGallery.activeBasemap = 'hybrid' (for example) fails with an error:&lt;/P&gt;&lt;P&gt;Uncaught TypeError: Cannot read properties of undefined (reading 'spatialReference')&lt;/P&gt;&lt;P&gt;I assume this has to to with the addition of allowing basemaps to have different spatial references in 4.23 but I can't seem to find and documentation on this particular issue.&lt;/P&gt;&lt;P&gt;Any help would be great.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 19:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-basemaps-using-activebasemap-lt-basemapid/m-p/1161336#M76925</guid>
      <dc:creator>MichaelSnook</dc:creator>
      <dc:date>2022-04-05T19:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing basemaps using activeBasemap = &lt;basemapid&gt; no longer works</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-basemaps-using-activebasemap-lt-basemapid/m-p/1161384#M76928</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2691"&gt;@MichaelSnook&lt;/a&gt;&amp;nbsp;- thanks for reporting this! We're working on a fix for this bug.&lt;/P&gt;&lt;P&gt;In the meantime, you can set the basemap directly on the map, and the activeBasemap in the BasemapGallery will update:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;view.map.basemap = "hybrid";&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Apr 2022 21:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-basemaps-using-activebasemap-lt-basemapid/m-p/1161384#M76928</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2022-04-05T21:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changing basemaps using activeBasemap = &lt;basemapid&gt; no longer works</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-basemaps-using-activebasemap-lt-basemapid/m-p/1161392#M76929</link>
      <description>&lt;P&gt;Easy fix...thanks!&amp;nbsp; Although, not a huge deal but, the widget doesn't seem to show the new base map as the 'active' one (there's no blue indicator or highlight for the basemap)...it does switch fine though.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 21:36:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-basemaps-using-activebasemap-lt-basemapid/m-p/1161392#M76929</guid>
      <dc:creator>MichaelSnook</dc:creator>
      <dc:date>2022-04-05T21:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing basemaps using activeBasemap = &lt;basemapid&gt; no longer works</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-basemaps-using-activebasemap-lt-basemapid/m-p/1165751#M77047</link>
      <description>&lt;P&gt;That seems to be a bug as well - we've fixed both of these issues for version 4.24. You can try these fixes out ahead of the release with the&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://js.arcgis.com/next" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/next&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;version of the API. Let us know if you are still running into any issues. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 16:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-basemaps-using-activebasemap-lt-basemapid/m-p/1165751#M77047</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2022-04-19T16:46:55Z</dc:date>
    </item>
  </channel>
</rss>

