<?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: Problem with creating a �??blank�?� basemap in application in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415291#M38234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you clarify:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Create a basemapLayer with the service just published&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I creating an ArcGISTiledMapServiceLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Create a basemap fed in the basemapLayer&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What does this mean?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Sep 2013 16:52:15 GMT</pubDate>
    <dc:creator>Town_ofSnowflake</dc:creator>
    <dc:date>2013-09-13T16:52:15Z</dc:date>
    <item>
      <title>Problem with creating a ???blank??? basemap in application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415289#M38232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm building an application where I'd like the user to be able to select a blank basemap from a gallery of basemap options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found that if I initialize the app with a "white" "blank" or "none," I get the blank basemap I desire. Unfortunately, when I set this property it seems to "lock" the basemap into the "blank" property. When the user selects a new basemap, such as "topo" from the gallery I've created, the basemap stays blank.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand, if I initialize the app with a basemap such as "topo," the user can switch between other basemaps, but if they try to select "blank" the basemap doesn't change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though it isn't listed as an option in the API, is it possible to switch between a "blank" basemap and the others?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 14:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415289#M38232</guid>
      <dc:creator>Town_ofSnowflake</dc:creator>
      <dc:date>2013-09-13T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a �??blank�?� basemap in application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415290#M38233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess what you did is to create an empty basemap, and add it to the basemap gallery. Am I right? Please refer to the ESRI document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;All basemaps added to the gallery need to have the same spatial reference. If the default ArcGIS.com basemaps are used then all additional items added to the gallery need to be in Web Mercator (wkids: 102100, 102113 and 3857). If the default basemaps are not used you can add basemaps in any spatial reference as long as all the items added to the gallery share that spatial reference. To achieve the best performance, it is recommended that all basemaps added to the gallery are cached (tiled) layers.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried to create a blank map document with the spatial reference set to webMercator, and then publish it as a map service? In the code, &lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Create a basemapLayer with the service just published.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Create a basemap fed in the basemapLayer.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Add basemap to the basemap gallery.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 16:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415290#M38233</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2013-09-13T16:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a �??blank�?� basemap in application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415291#M38234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you clarify:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Create a basemapLayer with the service just published&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I creating an ArcGISTiledMapServiceLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Create a basemap fed in the basemapLayer&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What does this mean?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 16:52:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415291#M38234</guid>
      <dc:creator>Town_ofSnowflake</dc:creator>
      <dc:date>2013-09-13T16:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a �??blank�?� basemap in application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415292#M38235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Am I creating an ArcGISTiledMapServiceLayer?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I would suggest to publish the empty map service as cached one, and &lt;/SPAN&gt;&lt;STRONG&gt;DEFINE &lt;/STRONG&gt;&lt;SPAN&gt;the scale levels exactly the same as any esri basemap, but do &lt;/SPAN&gt;&lt;STRONG&gt;NOT &lt;/STRONG&gt;&lt;SPAN&gt;create the tiled images. The ArcGIS Server will recognize it as tiled map service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample code explains what I meant assuming using AMD code style. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var basemapLayer = new BasemapLayer({
&amp;nbsp;&amp;nbsp;&amp;nbsp; url:"url/of/empty/basemap/mapservice"
});

var emptyBasemap = new Basemap({
&amp;nbsp;&amp;nbsp;&amp;nbsp; layers: [basemapLayer],
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Empty Basemap",
&amp;nbsp;&amp;nbsp;&amp;nbsp; thumbnailUrl: "url/of/empty/image"
});

basemapGallery.add(emptyBasemap);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:49:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415292#M38235</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2021-12-11T18:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a �??blank�?� basemap in application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415293#M38236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to successfully put the blank basemap into the gallery.&amp;nbsp; However, I want the basemap gallery to also include: streets, satellite, hybrid, topo, gray, oceans, national-geographic, osm.&amp;nbsp; Do I need to manually add each one individually?&amp;nbsp; If so, what are updated links for them?&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services"&gt;This&lt;/A&gt;&lt;SPAN&gt; is the only link I know of and it doesn't include them all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 20:32:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415293#M38236</guid>
      <dc:creator>Town_ofSnowflake</dc:creator>
      <dc:date>2013-09-13T20:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a �??blank�?� basemap in application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415294#M38237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To include ESRI basemaps, make sure showArcGISBasemaps set to true when creating basemapGallery. If you like to only include subset of ESRI basemaps or like to reorder the basemaps in the gallery, you can create a basemap for each type, and add to the gallery in order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the sample for including the esri basemaps and adding yours at the end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var basemapGallery = new esri.dijit.BasemapGallery({
&amp;nbsp; showArcGISBasemaps: true,
&amp;nbsp; map: map
}, "basemapGallery");

var basemapLayer = new BasemapLayer({
&amp;nbsp;&amp;nbsp;&amp;nbsp; url:"url/of/empty/basemap/mapservice"
});

var emptyBasemap = new Basemap({
&amp;nbsp;&amp;nbsp;&amp;nbsp; layers: [basemapLayer],
&amp;nbsp;&amp;nbsp;&amp;nbsp; title: "Empty Basemap",
&amp;nbsp;&amp;nbsp;&amp;nbsp; thumbnailUrl: "url/of/empty/image"
});

basemapGallery.add(emptyBasemap);

basemapGallery.startup();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415294#M38237</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2021-12-11T18:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a �??blank�?� basemap in application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415295#M38238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you explored this option already: use an esri basemap or other appropriate cached map service and set the transparency to 100%. Might not be acceptable for what you are doing, but it effectively gives you a blank basemap in just a few seconds.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 00:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415295#M38238</guid>
      <dc:creator>TobiasFimpel</dc:creator>
      <dc:date>2013-09-23T00:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating a ???blank??? basemap in application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415296#M38239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.&lt;BR /&gt;This is really help me and it's work Great !&lt;BR /&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 08:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-creating-a-blank-basemap-in/m-p/415296#M38239</guid>
      <dc:creator>YousefQuran</dc:creator>
      <dc:date>2015-03-16T08:14:00Z</dc:date>
    </item>
  </channel>
</rss>

