<?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: Need to catch Basemap load error event in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-catch-basemap-load-error-event/m-p/680831#M63453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kishore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So what happens when it is blocked what is the error? Have you tried checking the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;lyrGEBCO to see if it is null or have some property that is null when it does not load or the&amp;nbsp;&lt;SPAN&gt;bmapGEBCO object?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2018 13:04:29 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-06-14T13:04:29Z</dc:date>
    <item>
      <title>Need to catch Basemap load error event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-catch-basemap-load-error-event/m-p/680830#M63452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&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;The base map which i am using in my application is currently being blocked from the source site.Due to this my application is getting crashed.Now,in this case I want to load another basemap(ex:"topo") on the fly if the initial basemap loading fails.Ideally it should be done in the failure event of the initial basemap loading.But I am not able to find any such event.Could anyone guide me in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Envirnoment details:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGIS Api for javascript 3.17 version&lt;/P&gt;&lt;P&gt;Initial basemap url:&amp;nbsp;"&lt;A class="link-titled" href="https://maps.ngdc.noaa.gov/arcgis/rest/services/web_mercator/gebco_2014_hillshade/MapServer" title="https://maps.ngdc.noaa.gov/arcgis/rest/services/web_mercator/gebco_2014_hillshade/MapServer"&gt;web_mercator/gebco_2014_hillshade (MapServer)&lt;/A&gt;&amp;nbsp;"&lt;/P&gt;&lt;P&gt;Alternate basemap url: "&lt;A class="link-titled" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" title="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"&gt;World_Topo_Map (MapServer)&lt;/A&gt;&amp;nbsp;"&lt;/P&gt;&lt;P&gt;Below I am furnishing my code chunk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var lyrGEBCO = new BasemapLayer({ url : "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmaps.ngdc.noaa.gov%2Farcgis%2Frest%2Fservices%2Fweb_mercator%2Fgebco_2014_hillshade%2FMapServer" rel="nofollow" target="_blank"&gt;https://maps.ngdc.noaa.gov/arcgis/rest/services/web_mercator/gebco_2014_hillshade/MapServer&lt;/A&gt;&lt;SPAN&gt;" });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var bmapGEBCO = new Basemap ({ layers : [ lyrGEBCO ],&lt;BR /&gt; title : "GEBCO",&lt;BR /&gt; thumbnailUrl : "images/mgs_gebco.png"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var map = new Map ("iddivMap", {basemap : bmapGEBCO,&lt;BR /&gt;center : [ 82, 22 ], &lt;BR /&gt;zoom : 5,&lt;BR /&gt; slider : false,&lt;BR /&gt; logo : false&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishore Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 09:23:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-catch-basemap-load-error-event/m-p/680830#M63452</guid>
      <dc:creator>SriHarsha</dc:creator>
      <dc:date>2018-06-14T09:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need to catch Basemap load error event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-catch-basemap-load-error-event/m-p/680831#M63453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kishore,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So what happens when it is blocked what is the error? Have you tried checking the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;lyrGEBCO to see if it is null or have some property that is null when it does not load or the&amp;nbsp;&lt;SPAN&gt;bmapGEBCO object?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-to-catch-basemap-load-error-event/m-p/680831#M63453</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-06-14T13:04:29Z</dc:date>
    </item>
  </channel>
</rss>

