<?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: basemap value for National Geographic Style basemap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-value-for-national-geographic-style/m-p/1282863#M80964</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/107356"&gt;@CharlesGeiger&lt;/a&gt;&amp;nbsp;- the &lt;FONT face="andale mono,times"&gt;map.basemap&lt;/FONT&gt; property can either autocast from a string or the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html" target="_self"&gt;Basemap class&lt;/A&gt;. Using the Basemap class instead of the string, you can bring that National Geographic webmap into your basemap through the portal item id:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const map = new Map({
  basemap: { // autocasts as new Basemap()
    portalItem: {
      // id of the National Geographic WebMap
      id: "f33a34de3a294590ab48f246e99958c9"
    }
  }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 15:38:50 GMT</pubDate>
    <dc:creator>AnneFitz</dc:creator>
    <dc:date>2023-04-26T15:38:50Z</dc:date>
    <item>
      <title>basemap value for National Geographic Style basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-value-for-national-geographic-style/m-p/1282841#M80963</link>
      <description>&lt;P&gt;I am trying to use the National Geographic Style basemap in a JavaScript-coded webpage. The only value for the basemap property listed on&amp;nbsp;&lt;A title="Map - basemap" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html" target="_self"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html&lt;/A&gt;&amp;nbsp;gives the property value of "national-geographic" and then says that this is the deprecated version. It provides a link to the ArcGIS.com page hosting the updated version of the map, National Geographic Style. However, no matter how far I dig I cannot see what value to use for that updated "basemap" property." I have tried several variations on "national-geographic" but none have worked. Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-value-for-national-geographic-style/m-p/1282841#M80963</guid>
      <dc:creator>CharlesGeiger</dc:creator>
      <dc:date>2023-04-26T15:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: basemap value for National Geographic Style basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-value-for-national-geographic-style/m-p/1282863#M80964</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/107356"&gt;@CharlesGeiger&lt;/a&gt;&amp;nbsp;- the &lt;FONT face="andale mono,times"&gt;map.basemap&lt;/FONT&gt; property can either autocast from a string or the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html" target="_self"&gt;Basemap class&lt;/A&gt;. Using the Basemap class instead of the string, you can bring that National Geographic webmap into your basemap through the portal item id:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const map = new Map({
  basemap: { // autocasts as new Basemap()
    portalItem: {
      // id of the National Geographic WebMap
      id: "f33a34de3a294590ab48f246e99958c9"
    }
  }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-value-for-national-geographic-style/m-p/1282863#M80964</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-04-26T15:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: basemap value for National Geographic Style basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-value-for-national-geographic-style/m-p/1282871#M80966</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Map SDK document gives the link to the new National geographic basemap:&amp;nbsp;&lt;A href="https://www.arcgis.com/home/item.html?id=f33a34de3a294590ab48f246e99958c9" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=f33a34de3a294590ab48f246e99958c9&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The API allows users to add basemaps by choosing one of the named basemaps (shortcut). The name must exist in the table. Since the new version is not listed in the table you cannot add it by trying different names.&lt;/P&gt;&lt;P&gt;So you have to add the basemap from the portalItem. The Map.basemap either accepts string (must come from the named table list) or a Basemap. If you click on the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html" target="_blank"&gt;basemap&lt;/A&gt; link&amp;nbsp; then the SDK document for the basemap shows many different ways of setting up a basemap for your map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the case of national geographic basemap, you do the following.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const map = new Map({
  basemap: new Basemap({
    portalItem: {
      id: "f33a34de3a294590ab48f246e99958c9"
    }
  })
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-value-for-national-geographic-style/m-p/1282871#M80966</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-04-26T15:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: basemap value for National Geographic Style basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-value-for-national-geographic-style/m-p/1282887#M80967</link>
      <description>&lt;P&gt;Thanks to AnneFitz and UndralBatsukh both. The solutions worked, though they do generate a bunch of font errors in the console.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 16:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemap-value-for-national-geographic-style/m-p/1282887#M80967</guid>
      <dc:creator>CharlesGeiger</dc:creator>
      <dc:date>2023-04-26T16:08:57Z</dc:date>
    </item>
  </channel>
</rss>

