<?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: No Map Shows If I Modify the Basemap on Esri-React-Boot in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1021868#M71554</link>
    <description>&lt;P&gt;It looks like there are tiers of what maps are available and 'arcgis-topographic' falls under needing an API key&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap" target="_self"&gt;BaseMap availability&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'topo' is available for use without an API key, but requires a valid &lt;A href="https://doc.arcgis.com/en/arcgis-online/get-started/create-account.htm#ESRI_SECTION1_24871ED982AC41ED86FF1937E7604CDE" target="_blank" rel="noopener"&gt;ArcGIS Online organizational subscription&lt;/A&gt; or an &lt;A href="https://enterprise.arcgis.com/en/" target="_blank" rel="noopener"&gt;ArcGIS Enterprise license&lt;/A&gt;.&amp;nbsp; Maybe try using that one?&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jan 2021 15:30:04 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-01-30T15:30:04Z</dc:date>
    <item>
      <title>No Map Shows If I Modify the Basemap on Esri-React-Boot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1021760#M71545</link>
      <description>&lt;P&gt;I am pretty stuck and do not know what I am doing wrong. I am currently just trying to modify this library from Esri (&lt;A href="https://github.com/Esri/esri-react-boot" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Esri/esri-react-boot&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;It uses OAuth, but you can view the map without having to sign in. However, if I want to modify the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;basemap&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;config to show&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;arcgis-topographic&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;like the tutorial shows here (&lt;A href="https://developers.arcgis.com/javascript/latest/display-a-map/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/javascript/latest/display-a-map/&lt;/A&gt;), I do not get any render of the map.&lt;/P&gt;&lt;P&gt;The tutorial uses an API Key, but when using OAuth, you shouldn't need to do anything like that.&lt;/P&gt;&lt;P&gt;Below are the only 2 files I have modified, everything else is the same as in the repo.&lt;BR /&gt;&lt;BR /&gt;config.json&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "appVersion": "2.0.0",

  "apiUrl": "api",
  "loginUrl": "api/auth/arcgis",
  "logoutUrl": "api/logout",
  "jsapiUrl": "https://js.arcgis.com/4.17/",
  "jsapiV4": true,

  "clientId": "&amp;lt;hidden&amp;gt;",

  "sessionId": "esri-react-boot_session",

  "mapConfig": {
    "basemap": "arcgis-topographic",
    "center": [-118.805, 34.027],
    "zoom": 13
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;package.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "name": "react-jsapi-app",
  "version": "0.1.0",
  "private": true,
  "homepage": "/",
  "dependencies": {
    "@esri/arcgis-rest-auth": "^3.0.0",
    "@esri/arcgis-rest-portal": "^3.0.0",
    "@esri/arcgis-rest-request": "^3.0.0",
    "calcite-react": "^0.44.0",
    "esri-loader": "^2.16.0",
    "framer-motion": "^1.6.18",
    "js-cookie": "^2.2.1",
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-redux": "^7.1.3",
    "react-router-dom": "^5.1.2",
    "react-transition-group": "^4.3.0",
    "redux": "^4.0.4",
    "redux-saga": "^1.1.3",
    "styled-components": "^4.4.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "devDependencies": {
    "react-scripts": "^3.3.0"
  },
  "browserslist": {
    "development": [
      "last 2 chrome versions",
      "last 2 firefox versions",
      "last 2 edge versions"
    ],&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 21:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1021760#M71545</guid>
      <dc:creator>developerarce</dc:creator>
      <dc:date>2021-01-29T21:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: No Map Shows If I Modify the Basemap on Esri-React-Boot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1021868#M71554</link>
      <description>&lt;P&gt;It looks like there are tiers of what maps are available and 'arcgis-topographic' falls under needing an API key&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap" target="_self"&gt;BaseMap availability&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'topo' is available for use without an API key, but requires a valid &lt;A href="https://doc.arcgis.com/en/arcgis-online/get-started/create-account.htm#ESRI_SECTION1_24871ED982AC41ED86FF1937E7604CDE" target="_blank" rel="noopener"&gt;ArcGIS Online organizational subscription&lt;/A&gt; or an &lt;A href="https://enterprise.arcgis.com/en/" target="_blank" rel="noopener"&gt;ArcGIS Enterprise license&lt;/A&gt;.&amp;nbsp; Maybe try using that one?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 15:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1021868#M71554</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-30T15:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: No Map Shows If I Modify the Basemap on Esri-React-Boot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1022702#M71598</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 19:32:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1022702#M71598</guid>
      <dc:creator>developerarce</dc:creator>
      <dc:date>2021-02-02T19:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: No Map Shows If I Modify the Basemap on Esri-React-Boot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1140859#M76265</link>
      <description>&lt;P&gt;I'm actually trying to get an ArcGIS JS + React application to work _with_ an ArcGIS Developer API key (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#apiKey" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#apiKey&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;In vanilla JS it is done like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    require(["esri/config"],
      function (esriConfig) {

      esriConfig.apiKey = "YOUR_KEY_HERE";&lt;/LI-CODE&gt;&lt;P&gt;Has anyone cracked this nut?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 17:48:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1140859#M76265</guid>
      <dc:creator>coryeicher</dc:creator>
      <dc:date>2022-02-04T17:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: No Map Shows If I Modify the Basemap on Esri-React-Boot</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1141326#M76272</link>
      <description>&lt;P&gt;I was able to make this work using '@arcgis/core/config'&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import config from '@arcgis/core/config';
// ...
export const webmap = new WebMap({
	portalItem: {
		id: 'abc123' // portal id of your webmap
	  }
});
// ...
config.apiKey = 'YOUR_KEY';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;For example you can add the import after this line...&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/jsapi-esm-react/blob/main/src/data/webmap.js#L3" target="_blank"&gt;https://github.com/odoe/jsapi-esm-react/blob/main/src/data/webmap.js#L3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;... replace this webmap with your new WebMap here...&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/jsapi-esm-react/blob/main/src/data/webmap.js#L17" target="_blank"&gt;https://github.com/odoe/jsapi-esm-react/blob/main/src/data/webmap.js#L17&lt;/A&gt;&lt;/P&gt;&lt;P&gt;... and set apiKey after this line...&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/jsapi-esm-react/blob/main/src/data/webmap.js#L33" target="_blank"&gt;https://github.com/odoe/jsapi-esm-react/blob/main/src/data/webmap.js#L33&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 19:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-map-shows-if-i-modify-the-basemap-on-esri-react/m-p/1141326#M76272</guid>
      <dc:creator>coryeicher</dc:creator>
      <dc:date>2022-02-07T19:26:41Z</dc:date>
    </item>
  </channel>
</rss>

