<?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: Bring portal map in html file in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333665#M30811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that and I get the error: "Uncaught SyntaxError: Unexpected token &amp;lt;" at&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: 0in;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;A href="https://servername/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&amp;amp;f=json&amp;amp;callback=dojo_request_script_callbacks.dojo_request_script0"&gt;https://servername/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&amp;amp;f=json&amp;amp;callback=dojo_request_script_callbacks.dojo_request_script0&lt;/A&gt;&lt;A href="https://tfdm26-portal.tfdm.freedom.local/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&amp;amp;f=json&amp;amp;callback=dojo_request_script_callbacks.dojo_request_script0"&gt;https://tfdm26-portal.tfdm.freedom.local/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&amp;amp;f=json&amp;amp;callback=dojo_request_script_callbacks.dojo_request_script0&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in;"&gt;&lt;SPAN style="text-decoration: none;"&gt;When I copy and paste the above link in a new browser tab, it opens up to my portal webmap.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in;"&gt;&lt;SPAN style="text-decoration: none;"&gt;Note: The slash that is added is front of the web id starting with 769 does not make a difference whether it is there or not.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2018 01:18:39 GMT</pubDate>
    <dc:creator>MansiShah</dc:creator>
    <dc:date>2018-11-27T01:18:39Z</dc:date>
    <item>
      <title>Bring portal map in html file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333663#M30809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the JS API v. 3.22 to bring my portal map into an HTML div in my index.html file. I am receiving a dojo call back error but when I click on the error it takes me to my portal where after the sign in and certificate recognition, I can see my map so I'm not sure why it is not able to show up in my index. If the authentication is the issue and if anyone else has run into that and can point me in the right direction on how to handle that and modify my code below (I've also attached it as a JS file below) I would greatly appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I go to the webmap in portal it does require me to recognize my certificate twice and ask me to sign in (all three of the steps are attached as screenshots below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var map; &lt;BR /&gt;var newMap;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt; "dojox/mobile", &lt;BR /&gt; "dojo/parser",&lt;BR /&gt; "dojo/dom",&lt;BR /&gt; "esri/map",&lt;BR /&gt; "dojo/domReady!",&lt;BR /&gt; "esri/arcgis/Portal",&lt;BR /&gt; "dojo/_base/connect",&lt;BR /&gt; "esri/urlUtils",&lt;BR /&gt; "esri/arcgis/utils"], &lt;BR /&gt; function(mobile, parser, dom, Map, Portal, arcgisPortal, connect, urlUtils, arcgisUtils){&lt;BR /&gt; &lt;BR /&gt; parser.parse();&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; var portal = new arcgisPortal.Portal("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservername%2Farcgis%2F" rel="nofollow" target="_blank"&gt;https://servername/arcgis/&lt;/A&gt;&lt;SPAN&gt;"); //this works because we have connect as a function now&lt;/SPAN&gt;&lt;BR /&gt; connect.connect(portal, 'onLoad', function() {&lt;BR /&gt; console.log("portal: ", portal);&lt;BR /&gt; console.log(portal.defaultVectorBasemap);&lt;BR /&gt; });&lt;BR /&gt; var newMap;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; arcgisUtils.arcgisUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservername%2Farcgis%2F" rel="nofollow" target="_blank"&gt;https://servername/arcgis/&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt; console.log("after arcgisUtils.arcgisUrl");&lt;BR /&gt; arcgisUtils.createMap("769582fc23364618b2d3cee42aa67d0e", "viewDiv").then(function(response){&lt;BR /&gt; console.log("response: ", response);&lt;BR /&gt; newMap = response.map;&lt;BR /&gt; });&lt;BR /&gt; console.log("after createMap");&lt;BR /&gt; &lt;BR /&gt; map = new Map("viewDiv",{&lt;BR /&gt; basemap: newMap,&lt;BR /&gt; center: [-122.45, 37.35],&lt;BR /&gt; zoom: 13&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 21:31:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333663#M30809</guid>
      <dc:creator>MansiShah</dc:creator>
      <dc:date>2018-11-26T21:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bring portal map in html file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333664#M30810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Have you tried using this sample and just replacing the webmap id with your own and the portal url too.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/ags_createwebmapid.html" title="https://developers.arcgis.com/javascript/3/jssamples/ags_createwebmapid.html"&gt;Web map by ID | ArcGIS API for JavaScript 3.26&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 21:51:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333664#M30810</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-26T21:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bring portal map in html file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333665#M30811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that and I get the error: "Uncaught SyntaxError: Unexpected token &amp;lt;" at&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: 0in;"&gt;&lt;SPAN style="text-decoration: none;"&gt;&lt;A href="https://servername/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&amp;amp;f=json&amp;amp;callback=dojo_request_script_callbacks.dojo_request_script0"&gt;https://servername/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&amp;amp;f=json&amp;amp;callback=dojo_request_script_callbacks.dojo_request_script0&lt;/A&gt;&lt;A href="https://tfdm26-portal.tfdm.freedom.local/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&amp;amp;f=json&amp;amp;callback=dojo_request_script_callbacks.dojo_request_script0"&gt;https://tfdm26-portal.tfdm.freedom.local/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&amp;amp;f=json&amp;amp;callback=dojo_request_script_callbacks.dojo_request_script0&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in;"&gt;&lt;SPAN style="text-decoration: none;"&gt;When I copy and paste the above link in a new browser tab, it opens up to my portal webmap.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in;"&gt;&lt;SPAN style="text-decoration: none;"&gt;Note: The slash that is added is front of the web id starting with 769 does not make a difference whether it is there or not.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 01:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333665#M30811</guid>
      <dc:creator>MansiShah</dc:creator>
      <dc:date>2018-11-27T01:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bring portal map in html file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333666#M30812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So you uncommented this line and changed the url to your Portal right&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #999988;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if accessing webmap from a portal outside of ArcGIS Online, uncomment and replace path with portal URL&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #999988;"&gt;&lt;SPAN&gt;//arcgisUtils.arcgisUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fpathto%2Fportal%2Fsharing%2Fcontent%2Fitems" target="_blank"&gt;https://pathto/portal/sharing/content/items&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333666#M30812</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T15:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bring portal map in html file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333667#M30813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your require modules aren't agreeing with the function arguments. This will always cause problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt; "dojox/mobile", &lt;BR /&gt; "dojo/parser",&lt;BR /&gt; "dojo/dom",&lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/arcgis/Portal",&lt;BR /&gt; "dojo/_base/connect",&lt;BR /&gt; "esri/urlUtils",&lt;BR /&gt; "esri/arcgis/utils",&lt;BR /&gt; &lt;SPAN style="color: #ff0000;"&gt;"dojo/domReady!"&lt;/SPAN&gt;], &lt;BR /&gt; function(mobile, parser, dom, Map, Portal, arcgisPortal, connect, urlUtils, arcgisUtils){&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, "dojo/_base/connect" has been deprecated and should be replaced by "dojo/on", "dojo/aspect", or "dojo/topic"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 15:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333667#M30813</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-11-27T15:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bring portal map in html file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333668#M30814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I uncommented and tried to replace it with both my portal URL:&amp;nbsp;&lt;A class="link-titled" href="https://tfdm26-portal.tfdm.freedom.local/arcgis&amp;quot;" title="https://tfdm26-portal.tfdm.freedom.local/arcgis&amp;quot;"&gt;https://servername/arcgis"&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as well as the URL that I see when I actually load up the webmap in my portal in the browser:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://tfdm26-portal.tfdm.freedom.local/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&amp;amp;f=json&amp;amp;callback=dojo_request_script_callbacks.dojo_request_script0" title="https://tfdm26-portal.tfdm.freedom.local/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&amp;amp;f=json&amp;amp;callback=dojo_request_script_callbacks.dojo_request_script0"&gt;https://servername/arcgis/home/webmap/viewer.html?webmap=/769582fc23364618b2d3cee42aa67d0e&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 17:29:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333668#M30814</guid>
      <dc:creator>MansiShah</dc:creator>
      <dc:date>2018-11-27T17:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bring portal map in html file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333669#M30815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Notice the example url in that sample. "portal/sharing/content/items"&lt;/P&gt;&lt;PRE class="" style="color: #4d4d4d; background: #fafafa; border: 2px solid #dddddd; font-size: 14px; margin: 1em 0px 0px; padding: 0.5em 0px 0.5em 0.5em;"&gt;&lt;SPAN class="" style="color: #999988; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;//arcgisUtils.arcgisUrl = "&lt;/SPAN&gt;&lt;A class="unlinked"&gt;https://pathto/portal/sharing/content/items&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 17:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333669#M30815</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-27T17:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bring portal map in html file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333670#M30816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But that URL is not valid for our servers though. I get a 404 error meaning those files or folders don't exist for us. I can see my webmap in the portal using the links I have posted above though. Its starting to seem as if the issue is the certificates because when I go to the portal webmap in the browser, I am asked to click ok on my certificate as well as sign in.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 14:29:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333670#M30816</guid>
      <dc:creator>MansiShah</dc:creator>
      <dc:date>2018-11-28T14:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bring portal map in html file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333671#M30817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Well I am a bit out of my area of expertise here dealing with Portal url paths. Sorry I have no more advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 14:46:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bring-portal-map-in-html-file/m-p/333671#M30817</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-28T14:46:15Z</dc:date>
    </item>
  </channel>
</rss>

