<?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 Where can I report a bug? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/where-can-i-report-a-bug/m-p/588363#M54965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just changed my project from Version 2.8 to 3.2. Most of my code still works fine. I have a function, which changes my custom basemaps. So a Layer-Object will be removed and later re-added. When I remove the Layer it dissapear from the Map. If I add the same layer again it will not show it. If I try to remove this added layer I get an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code works in Version 2.8 but not in 3.2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
function(mId) {
&amp;nbsp; var pMap = this.map;
&amp;nbsp; var pDoRemove = false;
&amp;nbsp; 
&amp;nbsp; if (this.activeBasemap !== null){
&amp;nbsp;&amp;nbsp; this.lastBasemap = this.activeBasemap;
&amp;nbsp;&amp;nbsp; pDoRemove = true;
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; if (pDoRemove){
&amp;nbsp;&amp;nbsp; Ext.each(this.lastBasemap.layers, function(layer,index,allLayers){
&amp;nbsp;&amp;nbsp;&amp;nbsp; try{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMap.removeLayer(layer);
&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch(err){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var i =10;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }); 
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; if (mId &amp;gt;= 0){
&amp;nbsp;&amp;nbsp; this.activeBasemap = this.basemaps[mId];
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; Ext.each(this.activeBasemap.layers, function(layer,index,allLayers){
&amp;nbsp;&amp;nbsp;&amp;nbsp; pMap.addLayer(layer, index);
&amp;nbsp;&amp;nbsp; });&amp;nbsp; 
&amp;nbsp; }else{
&amp;nbsp;&amp;nbsp; this.activeBasemap = null
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; this.fireEvent('basemapChanged',this.activeBasemap);
&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug from 3.2 or did I miss something in 3.2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Urs&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2012 06:05:29 GMT</pubDate>
    <dc:creator>UrsRichard</dc:creator>
    <dc:date>2012-10-25T06:05:29Z</dc:date>
    <item>
      <title>Where can I report a bug?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/where-can-i-report-a-bug/m-p/588363#M54965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just changed my project from Version 2.8 to 3.2. Most of my code still works fine. I have a function, which changes my custom basemaps. So a Layer-Object will be removed and later re-added. When I remove the Layer it dissapear from the Map. If I add the same layer again it will not show it. If I try to remove this added layer I get an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code works in Version 2.8 but not in 3.2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
function(mId) {
&amp;nbsp; var pMap = this.map;
&amp;nbsp; var pDoRemove = false;
&amp;nbsp; 
&amp;nbsp; if (this.activeBasemap !== null){
&amp;nbsp;&amp;nbsp; this.lastBasemap = this.activeBasemap;
&amp;nbsp;&amp;nbsp; pDoRemove = true;
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; if (pDoRemove){
&amp;nbsp;&amp;nbsp; Ext.each(this.lastBasemap.layers, function(layer,index,allLayers){
&amp;nbsp;&amp;nbsp;&amp;nbsp; try{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMap.removeLayer(layer);
&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch(err){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var i =10;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }); 
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; if (mId &amp;gt;= 0){
&amp;nbsp;&amp;nbsp; this.activeBasemap = this.basemaps[mId];
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; Ext.each(this.activeBasemap.layers, function(layer,index,allLayers){
&amp;nbsp;&amp;nbsp;&amp;nbsp; pMap.addLayer(layer, index);
&amp;nbsp;&amp;nbsp; });&amp;nbsp; 
&amp;nbsp; }else{
&amp;nbsp;&amp;nbsp; this.activeBasemap = null
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; this.fireEvent('basemapChanged',this.activeBasemap);
&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug from 3.2 or did I miss something in 3.2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Urs&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 06:05:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/where-can-i-report-a-bug/m-p/588363#M54965</guid>
      <dc:creator>UrsRichard</dc:creator>
      <dc:date>2012-10-25T06:05:29Z</dc:date>
    </item>
  </channel>
</rss>

