<?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: Deploy App to AGOL in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deploy-app-to-agol/m-p/1319389#M81997</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/554773"&gt;@Ed_&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;ArcGIS Maps SDK for JavaScript applications cannot be hosted/deployed on ArcGIS Online. To share these applications, you would need a web server set up that is accessible to your end users so you could host the application.&lt;/P&gt;&lt;P&gt;CodePen is a great resource for testing which is what we recommend in the tutorials, but here's a general overview on different ways you could potentially publish your website:&amp;nbsp;&lt;A href="https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/Publishing_your_website" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/Publishing_your_website&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2023 22:21:39 GMT</pubDate>
    <dc:creator>LaurenBoyd</dc:creator>
    <dc:date>2023-08-16T22:21:39Z</dc:date>
    <item>
      <title>Deploy App to AGOL</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deploy-app-to-agol/m-p/1319345#M81993</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;So I have recently started learning tutorials on creating maps using &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ArcGIS Maps SDK for JavaScript. And right now I am on &lt;A href="https://developers.arcgis.com/javascript/latest/display-a-map/" target="_self"&gt;Display the Map tutorial.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How can I then let's deploy this app to AGOL for testing purposes?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;!--

To run this demo, you need to replace 'YOUR_API_KEY' with an API key from the ArcGIS Developers dashboard.

Sign up for a free account and get an API key.

https://developers.arcgis.com/documentation/mapping-apis-and-services/get-started/

--&amp;gt;

&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;
    &amp;lt;title&amp;gt;ArcGIS Maps SDK for JavaScript Tutorials: Display a map&amp;lt;/title&amp;gt;

    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;

    &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.27/esri/themes/light/main.css"&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.27/"&amp;gt;&amp;lt;/script&amp;gt;

    &amp;lt;script&amp;gt;
      require(["esri/config", "esri/Map", "esri/views/MapView"], function(esriConfig, Map, MapView) {

        esriConfig.apiKey = "YOUR_API_KEY";

        const map = new Map({
          basemap: "arcgis-topographic" // Basemap layer service
        });

        const view = new MapView({
          map: map,
          center: [-118.805, 34.027], // Longitude, latitude
          zoom: 13, // Zoom level
          container: "viewDiv" // Div element
        });

      });
    &amp;lt;/script&amp;gt;

  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 20:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deploy-app-to-agol/m-p/1319345#M81993</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2023-08-16T20:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy App to AGOL</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deploy-app-to-agol/m-p/1319389#M81997</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/554773"&gt;@Ed_&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;ArcGIS Maps SDK for JavaScript applications cannot be hosted/deployed on ArcGIS Online. To share these applications, you would need a web server set up that is accessible to your end users so you could host the application.&lt;/P&gt;&lt;P&gt;CodePen is a great resource for testing which is what we recommend in the tutorials, but here's a general overview on different ways you could potentially publish your website:&amp;nbsp;&lt;A href="https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/Publishing_your_website" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/Publishing_your_website&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 22:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deploy-app-to-agol/m-p/1319389#M81997</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-08-16T22:21:39Z</dc:date>
    </item>
  </channel>
</rss>

