<?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 Insconsistent state of the Map object when I change the basemap (possible bug) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insconsistent-state-of-the-map-object-when-i/m-p/730826#M67775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I have discovered a problem in the API related with Map.layerIds and Map.basemapLayerIds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem when I change the basemap with the BaseMapGallery is creating a inconsistent state of the Map object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the problem: when I change the basemap it seams that my &lt;/SPAN&gt;&lt;STRONG&gt;map.basemapLayerIds&lt;/STRONG&gt;&lt;SPAN&gt; is not updating with the new &lt;/SPAN&gt;&lt;STRONG&gt;Id&lt;/STRONG&gt;&lt;SPAN&gt;, and is keeping the old &lt;/SPAN&gt;&lt;STRONG&gt;id &lt;/STRONG&gt;&lt;SPAN&gt;this is creating and inconsistent &lt;/SPAN&gt;&lt;STRONG&gt;ids &lt;/STRONG&gt;&lt;SPAN&gt;between &lt;/SPAN&gt;&lt;STRONG&gt;map.layersIds&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;map.basemapLayerIds&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Map1.layersIds[0] is ???layer0??? this is the id of the basemap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Map1.baseMapLayerIds[0] is ???layer1??? this as well is the id of the basemap but it should be the same id than map1.layersIds. The id is not updated when we change the basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 11:52:22 GMT</pubDate>
    <dc:creator>EkaitzHernandez</dc:creator>
    <dc:date>2014-03-05T11:52:22Z</dc:date>
    <item>
      <title>Insconsistent state of the Map object when I change the basemap (possible bug)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insconsistent-state-of-the-map-object-when-i/m-p/730826#M67775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I have discovered a problem in the API related with Map.layerIds and Map.basemapLayerIds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem when I change the basemap with the BaseMapGallery is creating a inconsistent state of the Map object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the problem: when I change the basemap it seams that my &lt;/SPAN&gt;&lt;STRONG&gt;map.basemapLayerIds&lt;/STRONG&gt;&lt;SPAN&gt; is not updating with the new &lt;/SPAN&gt;&lt;STRONG&gt;Id&lt;/STRONG&gt;&lt;SPAN&gt;, and is keeping the old &lt;/SPAN&gt;&lt;STRONG&gt;id &lt;/STRONG&gt;&lt;SPAN&gt;this is creating and inconsistent &lt;/SPAN&gt;&lt;STRONG&gt;ids &lt;/STRONG&gt;&lt;SPAN&gt;between &lt;/SPAN&gt;&lt;STRONG&gt;map.layersIds&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;map.basemapLayerIds&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Map1.layersIds[0] is ???layer0??? this is the id of the basemap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Map1.baseMapLayerIds[0] is ???layer1??? this as well is the id of the basemap but it should be the same id than map1.layersIds. The id is not updated when we change the basemap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 11:52:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insconsistent-state-of-the-map-object-when-i/m-p/730826#M67775</guid>
      <dc:creator>EkaitzHernandez</dc:creator>
      <dc:date>2014-03-05T11:52:22Z</dc:date>
    </item>
  </channel>
</rss>

