<?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: Cannot read property 'mapDiv_layer0_tile_4_0_0' of null when using basemap gallery in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-read-property-mapdiv-layer0-tile-4-0-0-of/m-p/24683#M2156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One update...I cleared the cache and now I get the 30-40 errors no matter what basemap I select. Anybody who'd like to share any insights?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 16:31:11 GMT</pubDate>
    <dc:creator>DavidElies</dc:creator>
    <dc:date>2014-08-12T16:31:11Z</dc:date>
    <item>
      <title>Cannot read property 'mapDiv_layer0_tile_4_0_0' of null when using basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-read-property-mapdiv-layer0-tile-4-0-0-of/m-p/24682#M2155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use the basemap gallery to select an arcgis basemap upon map load, I get 30-40 errors like &lt;SPAN style="color: #c41a16; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;Cannot read property 'mapDiv_layer0_tile_4_2_7' of null&lt;/SPAN&gt;.This seems to be because of a 0-length timeout that is requested when the original basemap is added, whose callback tries to access the tiles for that basemap which has already been replaced, (there's a new layer in its place).&amp;nbsp; This doesn't happen if I choose a non-arcgis basemap like a Bing basemap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me what is causing this and offer a solution to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried not loading an initial basemap and using the basemap gallery to load the first basemap, but this does not work (no basemap is loaded, but no errors).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone knows how to check if the requested basemap is an esri basemap without hard-coding the name or id or anything else, I would like to know that too, since i could load esri maps another way (on map initialization or by manually adding a layer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 01:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-read-property-mapdiv-layer0-tile-4-0-0-of/m-p/24682#M2155</guid>
      <dc:creator>DavidElies</dc:creator>
      <dc:date>2014-08-12T01:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'mapDiv_layer0_tile_4_0_0' of null when using basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-read-property-mapdiv-layer0-tile-4-0-0-of/m-p/24683#M2156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One update...I cleared the cache and now I get the 30-40 errors no matter what basemap I select. Anybody who'd like to share any insights?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 16:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-read-property-mapdiv-layer0-tile-4-0-0-of/m-p/24683#M2156</guid>
      <dc:creator>DavidElies</dc:creator>
      <dc:date>2014-08-12T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'mapDiv_layer0_tile_4_0_0' of null when using basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-read-property-mapdiv-layer0-tile-4-0-0-of/m-p/24684#M2157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a sample app that shows the problem? I ran a quick test using two samples in the help and cannot reproduce. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/map_agol.html" title="https://developers.arcgis.com/javascript/jssamples/map_agol.html"&gt;Toggle multiple ArcGIS Online services | ArcGIS API for JavaScript&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/widget_basemap.html" title="https://developers.arcgis.com/javascript/jssamples/widget_basemap.html"&gt;Basemap gallery | ArcGIS API for JavaScript&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 16:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-read-property-mapdiv-layer0-tile-4-0-0-of/m-p/24684#M2157</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2014-08-12T16:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'mapDiv_layer0_tile_4_0_0' of null when using basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-read-property-mapdiv-layer0-tile-4-0-0-of/m-p/24685#M2158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the examples you suggested.&amp;nbsp; They don't have the problem.&amp;nbsp; I don't have access to a public server to share code examples, but I noticed that the examples use the new API version 3.10.&amp;nbsp; I switched my application to use 3.10 (I was using 3.9) and the problem isn't occuring right now.&amp;nbsp; I note that in the "What's New" page for 3.10, the undefined "" error was fixed, maybe some of these async errors were also fixed, or maybe I'm just a dummy.&amp;nbsp; In any event, thanks for the push in the right direction.&amp;nbsp; I'll monitor the issue and see if it continues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 18:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-read-property-mapdiv-layer0-tile-4-0-0-of/m-p/24685#M2158</guid>
      <dc:creator>DavidElies</dc:creator>
      <dc:date>2014-08-12T18:06:34Z</dc:date>
    </item>
  </channel>
</rss>

