<?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 Oauth typescript example but it does not work JS 4.11 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/oauth-typescript-example-but-it-does-not-work-js-4/m-p/661777#M61772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;follow the example for oauth,&amp;nbsp;&lt;A href="https://developers.arcgis.com/labs/javascript/access-services-with-oauth-2/"&gt;https://developers.arcgis.com/labs/javascript/access-services-with-oauth-2/&lt;/A&gt;&amp;nbsp;attempted to write&amp;nbsp;it in typescript, the main.js seems ok or transpiled with no errors, but does not seem to work not sure why&amp;nbsp;I have 404 errors for dojo_en_us.js and main.js even though files are there&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main.ts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Portal&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/portal/Portal&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;OAuthInfo&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/identity/OAuthInfo&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/identity/IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Map&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/Map&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/views/MapView&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;MapImageLayer&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/layers/MapImageLayer&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojo/dom-style&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomAtrr&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojo/dom-attr&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;On&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojo/on&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojo/dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// ArcGIS Online or your portal address&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;//const portalUrl = "https://www.arcgis.com/sharing";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portalUrl&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;https://&amp;lt;server&amp;gt;.maps.arcgis.com/&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// subsitute your own client id to identify who spawned the login and check for a matching redirect URI&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;info&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;OAuthInfo&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// appId: "JTpyML5GgvA1jEoo", //*** Your Client ID value goes here ***//&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; appId&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;, // removed the appID&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; popup&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// inline redirects don't require any additional app configuration&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;registerOAuthInfos&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;info&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;])&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// send users to arcgis.com to login&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;On&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;sign-in&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;click&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;getCredential&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portalUrl&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// log out and reload&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;On&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;sign-out&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;click&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;destroyCredentials&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;window&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;location&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;reload&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;checkSignInStatus&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portalUrl&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;anonymousPanel&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;none&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;personalizedPanel&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;block&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;DisplayMap&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;displayMap&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portal&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;Portal&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// Once the portal has loaded, the user is signed in&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portal&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;load&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;viewDiv&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;flex&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;Map&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; basemap&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;topo&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; container&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;viewDiv&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; map&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; zoom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;14&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; center&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;118.24&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;34.05&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;traffic&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;MapImageLayer&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; url&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;https://traffic.arcgis.com/arcgis/rest/services/World/Traffic/MapServer&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;add&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;traffic&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;checkSignInStatus&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portalUrl&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;anonymousPanel&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;none&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;personalizedPanel&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;block&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aaaaaa;"&gt;//*** ADD ***//&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;let&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;displaymap&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;DisplayMap&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;displaymap&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;displayMap&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;index.html&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;!&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;DOCTYPE&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;HTML&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;html&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;head&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;meta&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;http-equiv&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;Content-Type&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;text/html; charset=utf-8&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; /&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;meta&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;viewport&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;initial-scale=1, maximum-scale=1,user-scalable=no&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;meta&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;http-equiv&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;X-UA-Compatible&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;ie=edge&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;ArcGIS JS API Tutorials: Access traffic using OAuth2&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;rel&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;stylesheet&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;href&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;https://js.arcgis.com/4.11/esri/css/main.css&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;html&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt; body&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;#&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;viewDiv&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;font-family&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;Avenir Next W00&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;font-size&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;14&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;px&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;width&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;%&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;height&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;%&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;margin&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;px&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;padding&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;px&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;action&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;color&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;blue&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;cursor&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;pointer&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;text-decoration&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;underline&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;locationPath&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;location&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;pathname&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;/\/[^\/]+&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;$&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;window&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;dojoConfig&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; async&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; baseUrl&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; isDebug&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; packages&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; name&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;app&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; location&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;locationPath&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;/app&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;custom&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dijit&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojo&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojox&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; ]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; selectorEngine&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;lite&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; tlmSiblingOfDojo&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;false&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;https://js.arcgis.com/4.11&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;head&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;body&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;anonymousPanel&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display: block; padding: 5px; text-align: center;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;sign-in&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;class&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;action&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;Sign In&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; to see live traffic.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;personalizedPanel&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display: none; padding: 5px; text-align: center;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; Welcome &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;userId&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;font-weight: bold;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;sign-out&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;class&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;action&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;Sign Out&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aaaaaa;"&gt;&amp;lt;!-- for the map --&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;viewDiv&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display: none;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;([&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;app/main&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;])&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;body&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;html&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&lt;IMG alt="typescript oauth example code 404 error" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/449518_Oauth.PNG" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jun 2019 05:09:25 GMT</pubDate>
    <dc:creator>mchristmas5mchristmas5</dc:creator>
    <dc:date>2019-06-03T05:09:25Z</dc:date>
    <item>
      <title>Oauth typescript example but it does not work JS 4.11</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/oauth-typescript-example-but-it-does-not-work-js-4/m-p/661777#M61772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;follow the example for oauth,&amp;nbsp;&lt;A href="https://developers.arcgis.com/labs/javascript/access-services-with-oauth-2/"&gt;https://developers.arcgis.com/labs/javascript/access-services-with-oauth-2/&lt;/A&gt;&amp;nbsp;attempted to write&amp;nbsp;it in typescript, the main.js seems ok or transpiled with no errors, but does not seem to work not sure why&amp;nbsp;I have 404 errors for dojo_en_us.js and main.js even though files are there&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main.ts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Portal&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/portal/Portal&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;OAuthInfo&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/identity/OAuthInfo&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/identity/IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Map&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/Map&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/views/MapView&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;MapImageLayer&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;esri/layers/MapImageLayer&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojo/dom-style&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomAtrr&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojo/dom-attr&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;On&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojo/on&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #4b69c6;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojo/dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// ArcGIS Online or your portal address&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;//const portalUrl = "https://www.arcgis.com/sharing";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portalUrl&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;https://&amp;lt;server&amp;gt;.maps.arcgis.com/&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// subsitute your own client id to identify who spawned the login and check for a matching redirect URI&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;info&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;OAuthInfo&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// appId: "JTpyML5GgvA1jEoo", //*** Your Client ID value goes here ***//&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; appId&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;, // removed the appID&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; popup&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// inline redirects don't require any additional app configuration&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;registerOAuthInfos&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;info&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;])&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// send users to arcgis.com to login&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;On&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;sign-in&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;click&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;getCredential&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portalUrl&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// log out and reload&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;On&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;sign-out&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;click&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;destroyCredentials&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;window&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;location&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;reload&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;checkSignInStatus&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portalUrl&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;anonymousPanel&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;none&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;personalizedPanel&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;block&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;DisplayMap&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;displayMap&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portal&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;Portal&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aaaaaa;"&gt;// Once the portal has loaded, the user is signed in&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portal&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;load&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;viewDiv&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;flex&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;Map&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; basemap&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;topo&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; container&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;viewDiv&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; map&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; zoom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;14&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; center&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;118.24&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;34.05&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;traffic&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;MapImageLayer&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; url&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;https://traffic.arcgis.com/arcgis/rest/services/World/Traffic/MapServer&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;add&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;traffic&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;IdentityManager&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;checkSignInStatus&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;portalUrl&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;anonymousPanel&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;none&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;DomStyle&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;Dom&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;byId&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;personalizedPanel&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;block&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aaaaaa;"&gt;//*** ADD ***//&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;let&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;displaymap&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d; font-weight: bold;"&gt;DisplayMap&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;displaymap&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;displayMap&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;index.html&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;!&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;DOCTYPE&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;HTML&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;html&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;head&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;meta&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;http-equiv&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;Content-Type&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;text/html; charset=utf-8&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; /&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;meta&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;viewport&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;initial-scale=1, maximum-scale=1,user-scalable=no&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;meta&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;http-equiv&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;X-UA-Compatible&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;ie=edge&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;ArcGIS JS API Tutorials: Access traffic using OAuth2&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;rel&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;stylesheet&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;href&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;https://js.arcgis.com/4.11/esri/css/main.css&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;html&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt; body&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;#&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;viewDiv&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;font-family&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;Avenir Next W00&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;font-size&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;14&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;px&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;width&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;%&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;height&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;%&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;margin&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;px&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;padding&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;px&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;action&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;color&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;blue&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;cursor&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;pointer&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;text-decoration&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;underline&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;locationPath&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;location&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;pathname&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;/\/[^\/]+&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;$&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;window&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;dojoConfig&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; async&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; baseUrl&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; isDebug&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; packages&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; name&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;app&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; location&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;locationPath&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;/app&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;custom&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dijit&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojo&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;dojox&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; ]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; selectorEngine&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;lite&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; tlmSiblingOfDojo&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;false&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;https://js.arcgis.com/4.11&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;head&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;body&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;anonymousPanel&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display: block; padding: 5px; text-align: center;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;sign-in&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;class&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;action&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;Sign In&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; to see live traffic.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;personalizedPanel&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display: none; padding: 5px; text-align: center;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; Welcome &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;userId&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;font-weight: bold;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;sign-out&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;class&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;action&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;Sign Out&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;span&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aaaaaa;"&gt;&amp;lt;!-- for the map --&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;viewDiv&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8190a0;"&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;display: none;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;div&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;([&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;app/main&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;])&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;body&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;html&lt;/SPAN&gt;&lt;SPAN style="color: #91b3e0;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #91b3e0;"&gt;&lt;IMG alt="typescript oauth example code 404 error" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/449518_Oauth.PNG" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 05:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/oauth-typescript-example-but-it-does-not-work-js-4/m-p/661777#M61772</guid>
      <dc:creator>mchristmas5mchristmas5</dc:creator>
      <dc:date>2019-06-03T05:09:25Z</dc:date>
    </item>
  </channel>
</rss>

