<?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 Empty BaseMap not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/empty-basemap-not-working/m-p/619871#M57902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Utlimately if I could capture a BaseMap load failure that would good enough but I can't figure out how to do that so I've tried these things below.&amp;nbsp; If you know how to capture a BaseMap load failure please, please, please give me an example!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to load a dynamicMapService with no basemap specified and this works.&amp;nbsp; Problem occurs when trying to toggle to a new base map like "gray" after loading with no basemap.&amp;nbsp; The base map's don't actually load on the map although the map's "basemap-change" event fires.&amp;nbsp; They dynamicMapService is in the same coordinate system as the "gray" basemap. Any ideas why they won't show up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I couldn't get the previous to work, I tried constructing my own basemap in code but it doesn't appear to work because it says &lt;SPAN style="color: #e23d39;"&gt;&lt;EM&gt;Unknown basemap layer type: "WebTiledLayer" found in basemap definition. &lt;/EM&gt;&lt;SPAN style="color: #303030;"&gt;It clearly states in the documentation this is a valid option for type (&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/basemaplayer-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/basemaplayer-amd.html" rel="nofollow noopener noreferrer" target="_blank"&gt;BasemapLayer | API Reference | ArcGIS API for JavaScript 3.17&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;).&amp;nbsp; Any help to get a basemap defined that just returns a single empty tile would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the 3.16 API version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;new Map({
&lt;SPAN&gt;&amp;nbsp; //this idea was taken from &lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2128" data-containertype="14" data-objectid="171018" data-objecttype="1" href="https://community.esri.com/thread/171018" target="_blank"&gt;https://community.esri.com/message/581669&lt;/A&gt;
&amp;nbsp; basemap: new Basemap({ 
&amp;nbsp; id: "BlankBaseMap",
&amp;nbsp; title:"Blank BaseMap",
&amp;nbsp; layers: [&amp;nbsp; 
&amp;nbsp;&amp;nbsp; new BasemapLayer({
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; templateUrl: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A62470%2FLandScape%2FImages%2FblankTile.png" target="_blank"&gt;http://localhost:62470/Images/blankTile.png&lt;/A&gt;&lt;SPAN&gt;", //template will always return an empty image&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; type: "WebTiledLayer",
&amp;nbsp;&amp;nbsp; viewModulePaths: {},&amp;nbsp; 
&amp;nbsp;&amp;nbsp; initialExtent: new Extent(-20037508.342787, -20037508.342780, 20037508.342780, 20037508.342787, new SpatialReference({ wkid: 102100 })),
&amp;nbsp;&amp;nbsp; tileInfo: new TileInfo({&amp;nbsp; 
&amp;nbsp;&amp;nbsp; rows: 256,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; cols: 256,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; dpi: 96,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; format: "PNG8",&amp;nbsp; 
&amp;nbsp;&amp;nbsp; compressionQuality: 0,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; origin: new Point({&amp;nbsp; 
&amp;nbsp;&amp;nbsp; x: -20037508.342787,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; y: 20037508.342787,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; spatialReference: new SpatialReference({ wkid: 102100 })
&amp;nbsp;&amp;nbsp; }),
&amp;nbsp;&amp;nbsp; spatialReference: new SpatialReference({ wkid: 102100 }),
&amp;nbsp;&amp;nbsp; lods: [&amp;nbsp; 
&amp;nbsp; new LOD({ level: 0, scale: 591657527.591555, resolution: 156543.033928 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 1, scale: 295828763.795777, resolution: 78271.5169639999 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 2, scale: 147914381.897889, resolution: 39135.7584820001 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 3, scale: 73957190.948944, resolution: 19567.8792409999 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 4, scale: 36978595.474472, resolution: 9783.93962049996 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 5, scale: 18489297.737236, resolution: 4891.96981024998 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 6, scale: 9244648.868618, resolution: 2445.98490512499 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 7, scale: 4622324.434309, resolution: 1222.99245256249 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 8, scale: 2311162.217155, resolution: 611.49622628138 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 9, scale: 1155581.108577, resolution: 305.748113140558 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 10, scale: 577790.554289, resolution: 152.874056570411 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 11, scale: 288895.277144, resolution: 76.4370282850732 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 12, scale: 144447.638572, resolution: 38.2185141425366 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 13, scale: 72223.819286, resolution: 19.1092570712683 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 14, scale: 36111.909643, resolution: 9.55462853563415 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 15, scale: 18055.954822, resolution: 4.77731426794937 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 16, scale: 9027.977411, resolution: 2.38865713397468 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 17, scale: 4513.988705, resolution: 1.19432856685505 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 18, scale: 2256.994353, resolution: 0.597164283559817 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 19, scale: 1128.497176, resolution: 0.298582141647617 })&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; })
})&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:28:04 GMT</pubDate>
    <dc:creator>JustinCornell</dc:creator>
    <dc:date>2021-12-12T02:28:04Z</dc:date>
    <item>
      <title>Empty BaseMap not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/empty-basemap-not-working/m-p/619871#M57902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Utlimately if I could capture a BaseMap load failure that would good enough but I can't figure out how to do that so I've tried these things below.&amp;nbsp; If you know how to capture a BaseMap load failure please, please, please give me an example!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to load a dynamicMapService with no basemap specified and this works.&amp;nbsp; Problem occurs when trying to toggle to a new base map like "gray" after loading with no basemap.&amp;nbsp; The base map's don't actually load on the map although the map's "basemap-change" event fires.&amp;nbsp; They dynamicMapService is in the same coordinate system as the "gray" basemap. Any ideas why they won't show up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I couldn't get the previous to work, I tried constructing my own basemap in code but it doesn't appear to work because it says &lt;SPAN style="color: #e23d39;"&gt;&lt;EM&gt;Unknown basemap layer type: "WebTiledLayer" found in basemap definition. &lt;/EM&gt;&lt;SPAN style="color: #303030;"&gt;It clearly states in the documentation this is a valid option for type (&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/basemaplayer-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/basemaplayer-amd.html" rel="nofollow noopener noreferrer" target="_blank"&gt;BasemapLayer | API Reference | ArcGIS API for JavaScript 3.17&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;).&amp;nbsp; Any help to get a basemap defined that just returns a single empty tile would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the 3.16 API version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;new Map({
&lt;SPAN&gt;&amp;nbsp; //this idea was taken from &lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2128" data-containertype="14" data-objectid="171018" data-objecttype="1" href="https://community.esri.com/thread/171018" target="_blank"&gt;https://community.esri.com/message/581669&lt;/A&gt;
&amp;nbsp; basemap: new Basemap({ 
&amp;nbsp; id: "BlankBaseMap",
&amp;nbsp; title:"Blank BaseMap",
&amp;nbsp; layers: [&amp;nbsp; 
&amp;nbsp;&amp;nbsp; new BasemapLayer({
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; templateUrl: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A62470%2FLandScape%2FImages%2FblankTile.png" target="_blank"&gt;http://localhost:62470/Images/blankTile.png&lt;/A&gt;&lt;SPAN&gt;", //template will always return an empty image&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; type: "WebTiledLayer",
&amp;nbsp;&amp;nbsp; viewModulePaths: {},&amp;nbsp; 
&amp;nbsp;&amp;nbsp; initialExtent: new Extent(-20037508.342787, -20037508.342780, 20037508.342780, 20037508.342787, new SpatialReference({ wkid: 102100 })),
&amp;nbsp;&amp;nbsp; tileInfo: new TileInfo({&amp;nbsp; 
&amp;nbsp;&amp;nbsp; rows: 256,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; cols: 256,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; dpi: 96,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; format: "PNG8",&amp;nbsp; 
&amp;nbsp;&amp;nbsp; compressionQuality: 0,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; origin: new Point({&amp;nbsp; 
&amp;nbsp;&amp;nbsp; x: -20037508.342787,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; y: 20037508.342787,&amp;nbsp; 
&amp;nbsp;&amp;nbsp; spatialReference: new SpatialReference({ wkid: 102100 })
&amp;nbsp;&amp;nbsp; }),
&amp;nbsp;&amp;nbsp; spatialReference: new SpatialReference({ wkid: 102100 }),
&amp;nbsp;&amp;nbsp; lods: [&amp;nbsp; 
&amp;nbsp; new LOD({ level: 0, scale: 591657527.591555, resolution: 156543.033928 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 1, scale: 295828763.795777, resolution: 78271.5169639999 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 2, scale: 147914381.897889, resolution: 39135.7584820001 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 3, scale: 73957190.948944, resolution: 19567.8792409999 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 4, scale: 36978595.474472, resolution: 9783.93962049996 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 5, scale: 18489297.737236, resolution: 4891.96981024998 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 6, scale: 9244648.868618, resolution: 2445.98490512499 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 7, scale: 4622324.434309, resolution: 1222.99245256249 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 8, scale: 2311162.217155, resolution: 611.49622628138 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 9, scale: 1155581.108577, resolution: 305.748113140558 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 10, scale: 577790.554289, resolution: 152.874056570411 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 11, scale: 288895.277144, resolution: 76.4370282850732 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 12, scale: 144447.638572, resolution: 38.2185141425366 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 13, scale: 72223.819286, resolution: 19.1092570712683 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 14, scale: 36111.909643, resolution: 9.55462853563415 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 15, scale: 18055.954822, resolution: 4.77731426794937 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 16, scale: 9027.977411, resolution: 2.38865713397468 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 17, scale: 4513.988705, resolution: 1.19432856685505 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 18, scale: 2256.994353, resolution: 0.597164283559817 }),&amp;nbsp; 
&amp;nbsp; new LOD({ level: 19, scale: 1128.497176, resolution: 0.298582141647617 })&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; })
})&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/empty-basemap-not-working/m-p/619871#M57902</guid>
      <dc:creator>JustinCornell</dc:creator>
      <dc:date>2021-12-12T02:28:04Z</dc:date>
    </item>
  </channel>
</rss>

