<?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 Trouble switching from blank basemap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-switching-from-blank-basemap/m-p/284866#M26264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In addition to the standard basemaps, I want to give the users a choice of a "Blank" basemap. I've added a "Blank" option to the gallery like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;basemapGallery.add(new esri.dijit.Basemap({layers: [], title: "Blank"}));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I've added my data to the map with map.addLayer(). The above works, and my data shows up on the map, and the user can switch between all the basemaps, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that if they choose the "Blank" basemap, it correctly still shows the data with no map images. BUT if they then choose another basemap from the menu, the new basemap correctly appears, but my data no longer shows up (until I call addLayer() again - which is not needed for any of the other layers).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a better way to add a Blank basemap?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2014 13:22:49 GMT</pubDate>
    <dc:creator>AndrewJacobs1</dc:creator>
    <dc:date>2014-06-11T13:22:49Z</dc:date>
    <item>
      <title>Trouble switching from blank basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-switching-from-blank-basemap/m-p/284866#M26264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In addition to the standard basemaps, I want to give the users a choice of a "Blank" basemap. I've added a "Blank" option to the gallery like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;basemapGallery.add(new esri.dijit.Basemap({layers: [], title: "Blank"}));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I've added my data to the map with map.addLayer(). The above works, and my data shows up on the map, and the user can switch between all the basemaps, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that if they choose the "Blank" basemap, it correctly still shows the data with no map images. BUT if they then choose another basemap from the menu, the new basemap correctly appears, but my data no longer shows up (until I call addLayer() again - which is not needed for any of the other layers).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a better way to add a Blank basemap?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 13:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-switching-from-blank-basemap/m-p/284866#M26264</guid>
      <dc:creator>AndrewJacobs1</dc:creator>
      <dc:date>2014-06-11T13:22:49Z</dc:date>
    </item>
  </channel>
</rss>

