<?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 Bug in Basemap Gallery dijit in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-basemap-gallery-dijit/m-p/142556#M13301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this &lt;A href="https://developers.arcgis.com/javascript/jssamples/widget_basemap.html"&gt;sample&lt;/A&gt;, if a map is instantiated with the "hybrid" basemap (imagery and labels), the labels remain when the new basemap is selected from the gallery. If the map is instantiated with the "terrain" basemap (terrain, linework, and labels), the linework and labels remain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See it in action here: &lt;A href="http://plnkr.co/edit/5ux6lDNnLta9izgwuIiR?p=preview" title="http://plnkr.co/edit/5ux6lDNnLta9izgwuIiR?p=preview"&gt;Plunker&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 19:18:18 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2015-07-31T19:18:18Z</dc:date>
    <item>
      <title>Bug in Basemap Gallery dijit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-basemap-gallery-dijit/m-p/142556#M13301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this &lt;A href="https://developers.arcgis.com/javascript/jssamples/widget_basemap.html"&gt;sample&lt;/A&gt;, if a map is instantiated with the "hybrid" basemap (imagery and labels), the labels remain when the new basemap is selected from the gallery. If the map is instantiated with the "terrain" basemap (terrain, linework, and labels), the linework and labels remain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See it in action here: &lt;A href="http://plnkr.co/edit/5ux6lDNnLta9izgwuIiR?p=preview" title="http://plnkr.co/edit/5ux6lDNnLta9izgwuIiR?p=preview"&gt;Plunker&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 19:18:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-basemap-gallery-dijit/m-p/142556#M13301</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-07-31T19:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Basemap Gallery dijit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-basemap-gallery-dijit/m-p/142557#M13302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was identified by Esri support as a bug: BUG-000089550&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial workaround was to manually remove the reference overlay from the map's layer list the first time a new map is selected from the basemap gallery widget. However, since my application added the basemap through a configuration file, I couldn't always be sure a basemap with a reference layer would be used in the map construction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially, support tried to use the map property basemapLayerIds, but this only works on the first change of the basemap. The property isn't changed when the basemap changes. Instead, the workaround uses the map's load event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.on("load", function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(map);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var basemaps = map.basemapLayerIds;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setTimeout(function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(var index = 0; index &amp;lt; basemaps.length; index++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = map.getLayer(basemaps[index]);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer._basemapGalleryLayerType = "basemap";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(layer);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, 2000);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-basemap-gallery-dijit/m-p/142557#M13302</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T07:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Basemap Gallery dijit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-basemap-gallery-dijit/m-p/142558#M13303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An update on this bug:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The status of Esri BUG-000089550 - When using the Basemap Gallery widget in the ArcGIS JavaScript API if the map is instantiated with a basemap that has a reference overlay the labels remain when the new basemap is selected. - that you have been associated with has been changed to Not in Current Product Plan.&lt;BR /&gt;Public Explanation: No plans to address for 3.x&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-basemap-gallery-dijit/m-p/142558#M13303</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-10-29T16:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Basemap Gallery dijit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-basemap-gallery-dijit/m-p/142559#M13304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a little disappointing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 17:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-basemap-gallery-dijit/m-p/142559#M13304</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-10-29T17:02:38Z</dc:date>
    </item>
  </channel>
</rss>

